What is the output of the statement

cout << something(3)
given the following definition?
int something (int n)
{
if (n == 1)
return 3;
else
return 2 * something (n – 1);
}

12

Computer Science & Information Technology

You might also like to view...

Queries can be created within database objects such as forms and reports using the ________

A) Query Builder B) Calc button C) Filter Tool D) Question Builder

Computer Science & Information Technology

In most contemporary systems fixed-length sectors are used, with _________ bytes being the nearly universal sector size.

A. 64 B. 128 C. 256 D. 512

Computer Science & Information Technology