Embedded System Question:

Download Job Interview Questions and Answers PDF

Explain Scope of static variables?

Embedded System Interview Question
Embedded System Interview Question

Answer:

Static variables can only be accesed 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 caled within the file they are defined.

Download Embedded System Interview Questions And Answers PDF

Previous QuestionNext Question
Explain What happens when recursion functions are declared inline?Explain What is interrupt latency?