What would be the output of the call someThing (6) given the following definition?

void someThing (int n)
{
if (n > 3)
{
someThing (n – 1);
cout << 2 * n << “ “ << n + 2 << “ “;
}
}

a) 8 6 10 7 12 8
b) 12 8 10 7 8 6 6 5
c) 5 8 12 7 10 6 8
d) 6 5 8 6 10 7 12 8

a) 8 6 10 7 12 8

Computer Science & Information Technology

You might also like to view...

Rapid provisioning can be performed by a PowerShell script or from within the VMM GUI.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

The declaration for an array of 50 objects of class USStates would appear as:

a. USStates[50]; b. USStates stateArr[50]; c. stateArr USStates[50]; d. stateArr[50]; e. Cannot declare an array of objects.

Computer Science & Information Technology