Create a function that prints all elements of an array using recursion. Fill the blanks void print(int b[], int size){ if (size>0){ cout<<b[0]<<endl; _______(&b[1],size - 1); } } | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Create a function that prints all elements of an array using recursion. Fill the blanks void print(int b[], int size){ if (size>0){ cout<<b[0]<<endl; _______(&b[1],size - 1); } }

22nd Aug 2016, 2:16 PM
Soutik
Soutik - avatar
3 Answers
+ 1
thanks cohen
22nd Aug 2016, 2:52 PM
Soutik
Soutik - avatar
+ 1
thanks cohen
22nd Aug 2016, 2:53 PM
Soutik
Soutik - avatar
0
Rercusion is the process in which a function calls itself. Such a function is called a recursive function. Thus, the blank space will be the name of the function, "print".
22nd Aug 2016, 2:31 PM
Cohen Creber
Cohen Creber - avatar