Q. What will be the output of the following C function?
Code:#include <stdio.h>
void reverse(int i);
int main()
{
reverse(1);
}
void reverse(int i)
{
if (i > 5)
return ;
printf("%d ", i);
return reverse((i++, i));
}
β
Correct Answer: (A)
1 2 3 4 5