What will the foo function print if called with an actual parameter value of 5? int foo(int n) { if (n > 0) std::cout <<
Posted: Mon May 02, 2022 12:07 pm
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