Vidyalelo
C Programming · Q93

C Fundamentals

Programming · C Programming · question 93

Q93

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

A.
1 2 3 4 5
Answer
B.
Segmentation fault
C.
Compilation error
D.
Undefined behaviour

Answer: Option A

Solution

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