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));}

🎲 Try a Random Question  |  Total Questions in Quiz: 113  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
C Programming Practice Test: Miscellaneous Topics — practice the complete quiz, review flashcards, or try a random question.


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