Consider the following function:
int func(int x){if (x == 0) return 2; else if (x == 1)return 3;elsereturn (func(x − 1) + func(x − 2));}What is the output of the following statements?
a. cout ≪ func(0) ≪ end1;
b. cout ≪ func(1) ≪ end1;
c. cout ≪ func(2) ≪ end1;
d. cout ≪ func(5) ≪ end1;
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.