Vidyalelo
C Programming · Q46

C Miscellaneous

Programming · C Programming · question 46

Q46

What will be the output of the following C code? #include main() int n; n=f1(4); printf("%d",n); f1(int x) int b; if(x==1) return 1; else b=x*f1(x-1); return b;

A.
24
Answer
B.
4
C.
12
D.
10

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board