Using the same recursive()function from problem, what is the output of the following program?
int main(){cout << recursive(2);return 0;}a. 0
b. 1
c. 2
d. 4
problem
What is the output of the following program?
int recursive(int x){int result;if(x == 0)result = x;elseresult = x * (recursive (x – 1));return result;}int main(){cout << recursive(0);return 0;}a. 0
b. 1
c. 2
d. 4
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.