R
rahul8143
hello,
I have another problem in static variables. See following code
why it prints all 0 instead 4 3 2 1 ?
1)
void main()
{
static int i=5;
if(--i){
main();
printf("%d ",i);
}
}
Answer:
0 0 0 0
I have another problem in static variables. See following code
why it prints all 0 instead 4 3 2 1 ?
1)
void main()
{
static int i=5;
if(--i){
main();
printf("%d ",i);
}
}
Answer:
0 0 0 0