Top Posters
Since Sunday
8
p
4
h
4
c
4
d
3
3
c
3
t
3
u
3
A
3
B
3
j
3
New Topic  
Heff Heff
wrote...
Posts: 1330
Rep: 3 0
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 48 times
1 Reply
Replies
Answer verified by a subject expert
ade9jaade9ja
wrote...
Top Poster
Posts: 690
Rep: 4 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

Heff Author
wrote...

6 years ago
this is exactly what I needed
wrote...

Yesterday
Good timing, thanks!
wrote...

2 hours ago
This site is awesome
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1057 People Browsing
Related Images
  
 4478
  
 269
  
 298
Your Opinion
How often do you eat-out per week?
Votes: 81