Solved

What Is Wrong with the Following Recursive Function? It Should

Question 39

Multiple Choice

What is wrong with the following recursive function? It should print out the array backwards.
Void printint array[], int start, int size)
{
Ifstart == size)
Return;
Else
{
Printarray, 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

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents