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(8) << endl;
A. 4
B. 8
C. 72
D. 720
Answer: D
Computer Science & Information Technology
You might also like to view...
To combine schemas is through _______ when the schemas come from different namespaces.
A. include B. import C. export D. combine
Computer Science & Information Technology
Suppose you declare an array double list[] = {1, 3.4, 5.5, 3.5}. &list[1] is same as ________.
A. list[1] B. list C. list[0] D. list + 1 E. list + 2
Computer Science & Information Technology
The ___________ operator is used with a class-template name to tie each member-function definition to the class template’s scope.
Fill in the blank(s) with the appropriate word(s).
Computer Science & Information Technology
____ mode is a hard-edged, fixed-sized square with no options for changing the opacity or flow.
a. Pen b. Eraser c. Brush d. Block
Computer Science & Information Technology