Question: 4. (20) Give the output and trace the call stack for the following program void Bubba (int x) { cout < < B <

4. (20) Give the output and trace the call stack for the following program void Bubba (int x) { cout < < "B" < < x < < endl; if (x > 0) { Bubba (x-2); " cout < < "M < < x < < endl; Bubba (x-3); cout < < "E " < < x < < endl; } } int main() { Bubba (4); cout < < "18r" < < endl; return 0; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
