Ex - Q3: When the static variables are initialized?
Ans:
The static variables are initialized at compile time. So it initialized only once in the program. It does not allow the garbage values. It implicitly initialized as ZERO. It have the scope after the function completion. |