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...
Which of the following refers to a graphic that can be moved independently of the surrounding text?
A) Layout object B) Floating object C) Shape D) Inline object
Computer Science & Information Technology
____ are organized collections of data.
A. databases B. breadcrumbs C. scripts D. digital certificates
Computer Science & Information Technology