Hi All,
I have a doubt
[code=c]
void myfun(int x)
{
if(x>0)
myfun(--x);
printf("%d",x);
}
int main()
{
myfun(5)
return 0;
}
[/code]
Here the output is : 0,0,1,2,3,4. Can you tell why?
I have a doubt
[code=c]
void myfun(int x)
{
if(x>0)
myfun(--x);
printf("%d",x);
}
int main()
{
myfun(5)
return 0;
}
[/code]
Here the output is : 0,0,1,2,3,4. Can you tell why?
Comment