What is wrong with the following recursive function? It should print out the array backwards.
void print(int array[], int start, int size)
{
if(start == size)
return;
else
{
print(array, start-1,size);
cout << array[start] << endl;
}
}
a. infinite recursion
b. the stopping condition is wrong
c. the recursive call is wrong
d. A and C
e. nothing
e. nothing
Computer Science & Information Technology
You might also like to view...
David Smith and VicodinES both signed off using the word ________
Fill in the blank(s) with correct word
Computer Science & Information Technology
This is required because the computer doesn’t have a routable address until one is assigned by the DHCP server.
What will be an ideal response?
Computer Science & Information Technology