What is the output of the following function call, given the function definition below?
cout << tester (4); // function call
int tester (int n) // function definition
{
if (n == 1)
return 3;
else
return 2 * tester ( n – 1);
}
a) 3
b) 6
c) 12
d) 24
d) 24
Computer Science & Information Technology
You might also like to view...
When a site like Google Docs becomes unavailable for any period of time, this fuels the cloud computing concern of ________.
A. Legacy IT systems B. Privacy C. Reliability D. Security
Computer Science & Information Technology
Groups related elements in a form, making it easier to follow.
a. Form tag b. Form elements c. Fieldset element d. Legend element
Computer Science & Information Technology