sacrpio
Member level 3
STATTIC IN C
Hi friends,
Here a problem in C?
void mani()
{
static int a=5;
if(--a>0)
main();
printf("%d", a);
}
After execution this code is printing 0 0 0 0 0. Why? Could anybody explain.
What I am understanding is it should print o only.
Thanks
Hi friends,
Here a problem in C?
void mani()
{
static int a=5;
if(--a>0)
main();
printf("%d", a);
}
After execution this code is printing 0 0 0 0 0. Why? Could anybody explain.
What I am understanding is it should print o only.
Thanks