Vidyalelo
C Programming · Q68

C Miscellaneous

Programming · C Programming · question 68

Q68

What will be the output of the following C code? #include int main() int n=10; int f(int n); printf("%d",f(n)); int f(int n) if(n>0) return(n+f(n-2));

A.
10
B.
80
C.
30
Answer
D.
Error

Answer: Option C

Solution

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