#include<stdio.h>
int fn(int);
int main(char argc,char **argv)
{
fn(3);
return 0;
}
int fn(int n)
{
int temp=0;
if(n>0)
{
temp = n + fn(--n);
}
printf("%d",temp);
return 0;
}
I got the ouput as 0012....can anyone explain to me why???
#include<stdio.h>
int...
Hi Guest we just wanted to alert you to a major change in the forum. We will no longer be allowing the posting of outgoing links. Please use the attachment feature to attach media to your posts.