What would be the output of the following program? #include<stdio.h> #include<conio.h> int rec(int); int main() { int a=5; int flop; flop=rec(a); printf(answer=%d,flop); getch(); } int rec(int x) { int p; if(x==1) return 1; else { p=x*rec(x-1); return p; }
}
Reveal answer
Fill a bubble to check yourself