What will the foo function print if called with an actual parameter value of 5? int foo(int n) { if (n > 0) std::cout <<
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What will the foo function print if called with an actual parameter value of 5? int foo(int n) { if (n > 0) std::cout <<
What will the foo function print if called with an actual parameter value of 5? int foo(int n) { if (n > 0) std::cout << foo(n-1) { return n; } int main() { foo(5); } Select one: O 4 3 2 1 0 O 0 1 2 3 4 O4 An infinite sequence of zeros
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!