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...
Data-link addresses are also referred to as MAC addresses and Network Layer addresses are IP addresses.
a. true b. false
Answer the following statements true (T) or false (F)
1. An overloaded operator= function must be a non-static class member 2. An overloaded operator[] must be a non-static class member. 3. The operator prefix operator ++ is an l-value, and the text asserts that we should emulate this with operator overloads by returning a reference from prefix versions of operator++. 4. An operator overloading is essentially a function that uses a different syntax for invocation.