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
d. An infinite number of times
You might also like to view...
How would you put a firewalld firewall in panic mode from firewall-config? From firewall-cmd?
What will be an ideal response?
In the master and detail pages, Dreamweaver adds server behaviors to create a page ____________________ that enables you to move between the dynamic records if there are more records in the database than are displayed in the page.
Fill in the blank(s) with the appropriate word(s).
Horizontal rules are not
(a) followed by a line break. (b) preceded by a line break. (c) shaded by default. (d) used to break up text into meaningful units.
Which test ensures data accuracy by the incorporation of a number in the code itself?
What will be an ideal response?