CPA practice question 2 of 30

What happens when you attempt to compile and run the following code? #include using namespace std; int fun(int x); int main() { cout 0) return fun(x-1); else return 100; }

Full set: 220 questions
Answer options
A: It prints: 0
B: It prints: 10
C: It prints: 100 Correct answer
D: It prints: -1
Correct Answer:
C. It prints: 100
Scroll to Top