What is missing from this code? It attempts to output each value in the array.

void outputArray(int nums[], int arraySize)
{
cout << nums[arraySize – 1];
outputArray(nums, arraySize -1);
}
a. The size of the problem is not decreased with each recursive call
b. There is no base case to terminate the recursion
c. The parameters are passed incorrectly
d. All of the above

b. There is no base case to terminate the recursion

Computer Science & Information Technology

You might also like to view...

BIOSUEFI settings are stored on the system or primary hard drive

Indicate whether the statement is true or false

Computer Science & Information Technology

The grep utility (Sobell, page 56) searches for a string of characters in a file. Use grep to display all lines that contain a string (such as small) in the file you renamed in step 11.

What will be an ideal response?

Computer Science & Information Technology