int recFunc(int num){  if (num >= 10)     return 10;  else     return num * recFunc(num + 1);}
Consider the accompanying definition of a recursive function. What is the output of the following statement?cout << recFunc(10) << endl;

A. 10
B. 11
C. 100
D. 110

Answer: A

Computer Science & Information Technology

You might also like to view...

In the design window, you can click and drag a control to a new location when the mouse cursor is positioned inside the control and the mouse cursor becomes a ____________.

a. two-headed arrow b. four-headed arrow c. hand icon d. scissor icon

Computer Science & Information Technology

Walking is an automated way to discover pages of a Web site by following links.

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

Computer Science & Information Technology