Can explain why output of following code is 12345 but not 543210? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can explain why output of following code is 12345 but not 543210?

int loopy(int i) { if(i==0) {printf("%d", i);} else{ loopy(i-1); printf("%d", i); } } loopy(5);

20th Oct 2021, 9:54 PM
Muhammadirshod Koziev
Muhammadirshod Koziev - avatar
1 Answer
0
how does it counts up?
21st Oct 2021, 2:17 AM
Muhammadirshod Koziev
Muhammadirshod Koziev - avatar