0
Recursion
how many times will the calls() function be invoke before returning to main ? https://sololearn.com/compiler-playground/cxKIwiG2N8J5/?ref=app
10 odpowiedzi
+ 4
Let the computer do the work:
Create a global variable to count calls and give it an initial value of 0.
Increment it upon each call from within calls().
Print the count in main after the call.
Run the program and see the result.
+ 3
DESMOND YEBOAH my step-by-step instructions describe adding three lines of code. If you try it and it does not work, then post your updated code and then I will give further help.
+ 1
DESMOND YEBOAH That is so lazy. DO YOUR OWN HOMEWORK AND QUIT TRYING TO CHEAT!
0
Cheater. Do your homework! It’s Sololearn, not Solofake.
0
Its not a homework. Just want to know the fasters way to solve it.
0
Then what is it?
0
What way did you solve it?
0
Tree
0
Im looking for a faster option to solving it.
0
Code please