fn3;

  1. S

    Find the output of this program...only a few lines

    #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...
Top Bottom