Vidyalelo
C Programming · Q147

C Fundamentals

Programming · C Programming · question 147

Q147

What will be the output of the following C function? #include int main() reverse(1); void reverse(int i) if (i > 5) exit(0); printf("%d ", i); return reverse(i++);

A.
1 2 3 4 5
B.
1 2 3 4
C.
Compile time error
D.
Stack overflow
Answer

Answer: Option D

Solution

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