how many times the print statement will get executed for c=6 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

how many times the print statement will get executed for c=6

pass(c) { if(c!=0) { c--; pass(c); pass(c++); printf("output"); } else return 0; }

23rd Jul 2019, 11:00 AM
RaviKiran
RaviKiran - avatar
3 Answers
+ 1
Is it 28.
27th Jul 2019, 4:57 AM
Amal P Franglin
Amal P Franglin - avatar
0
Is it 7 times.
26th Jul 2019, 7:56 PM
Amal P Franglin
Amal P Franglin - avatar
0
No
27th Jul 2019, 4:41 AM
RaviKiran
RaviKiran - avatar