C Functions Question:
Download Questions PDF

What are the scope of static variables?

C Functions Interview Question
C Functions Interview Question

Answer:

The scope of a static variable is local to the block in which the variable is defined. However, the value of the static variable persists between two function calls.

Download C Functions Interview Questions And Answers PDF

Previous QuestionNext Question
What is use of bit field?Do you know the purpose of "register" keyword?