Void F( ){
Static int x = 0;
x++ ;
printf(“%d”, x);
}
int main ( )
{
F( ):
F( ):
F( ):
return 0;
}
Output of the above code snippet is:1
123
2
111
3
321
4
000
Void F( ){
Static int x = 0;
x++ ;
printf(“%d”, x);
}
int main ( )
{
F( ):
F( ):
F( ):
return 0;
}
Output of the above code snippet is: