Question: C++ Programming Consider the following recursive function: void recFun(int u) { if (u == 0) cout < < Zero! ; else { cout < <
C++ Programming
Consider the following recursive function:
void recFun(int u) {
if (u == 0) cout << "Zero! "; else { cout << "Negative "; recFun(u + 1); }
}
What is the output, if any, of the following statements?
recFun(8);
recFun(0);
recFun(-2);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
