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...
Which key sequence is used to start debugging?
A. F5 B. Shift-F5 C. F10 D. Ctrl-F5
Computer Science & Information Technology
The ____ protocol is responsible for opening email processing software when a link is clicked.
A. http:// B. email C. mailto: D. ftp://
Computer Science & Information Technology
The ________ method attaches form information to the end of a specified URL
Fill in the blank(s) with correct word
Computer Science & Information Technology
To encrypt packets WEP can use only a 64-bit or ____-bit number.
A. 72 B. 90 C. 110 D. 128
Computer Science & Information Technology