You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
Return to C Questions from GATE.
<quiz display="simple"> { What is the output of the following program? <syntaxhighlight lang="c">
int fib(int n){ if(n<=2)return 1; else return fib(n-1)+fib(n-2); } main(){ int n; printf("enter the number "); scanf("%d",&n); printf("fib(%d)=%d",n,fib(n)); } </syntaxhighlight> |type="{}" /} { Abc }
</quiz>