Friday, 9 November 2012

Explain Scope of static variables? | Embedded Interview Questions

Static variables can only be accessed in the files were they are declared.
Static variable within the scope of a function store it's values in consecutive calls of that function.
Static functions can only be called within the file they are defined.

No comments: