please see the following code:
here the output is 3 6.Code:#include<stdio.h> void f() { static int a=0; a=a+3; printf("%d",a); } void main() { f(); f(); }
so my question is:
when the function f is called the second time,does the compiler ignore the declaration of a inside the function?
please explain to me what happens here.