Multiple Choice
How many times will the following function call itself, if 5 is passed as the argument? void showMessage(int n)
{
If (n > 0)
{
Cout << "Good day!" << endl;
ShowMessage(n - 1) ;
}
}
A) 1
B) 4
C) 5
D) An infinite number of times
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q1: A _ function is one that calls
Q2: How many times will the following function
Q3: The QuickSort algorithm is used to sort<br>A)
Q5: The _ algorithm uses recursion to efficiently
Q6: A recursive function that does not have
Q6: A recursive function cannot call another function.
Q8: The QuickSort algorithm was developed in 1960
Q12: The recursive factorial function calculates the factorial
Q17: Recursive algorithms are less efficient than iterative
Q27: When function A calls function B which,