Top Posters
Since Sunday
A
6
j
6
c
5
m
5
C
5
d
5
s
5
n
4
i
4
d
4
d
4
J
4
New Topic  
pagnor pagnor
wrote...
Posts: 1540
6 years ago
How many times will the following function call itself, if the value 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
Textbook 
Database Concepts

Database Concepts


Edition: 7th
Authors:
Read 43 times
2 Replies
Genuine Coder
Replies
Answer verified by a subject expert
bestavinashbestavinash
wrote...
Top Poster
Posts: 675
Rep: 7 0
6 years ago
Sign in or Sign up in seconds to unlock everything for free
More solutions for this book are available here
1

Related Topics

pagnor Author
wrote...
6 years ago
This website is legit, thank you!
Genuine Coder
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  900 People Browsing
Related Images
  
 288
  
 386
  
 208
Your Opinion
Who will win the 2024 president election?
Votes: 8
Closes: November 4