What would be the result of the call doTask (5, 4), given the following definition?

int doTask (int a, int b)
{
if (a <= 2)
return 5;
else
return doTask(a-1, b-1) + a + b;
}

a) 5
b) 10
c) 17
d) 26

d) 26

Computer Science & Information Technology

You might also like to view...

You can set the rules for conditional formatting using the ________ Rules Manager

A) Background Color B) Find and Replace C) New Formatting D) Conditional Formatting

Computer Science & Information Technology

Which if the following is a factor for determining the legality of a search warrant?

a. Probable Cause b. Relevance c. Particularity d. Scope

Computer Science & Information Technology