Top Posters
Since Sunday
6
o
5
5
b
4
s
3
j
3
b
3
m
3
K
3
g
3
L
3
w
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 44 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
Good timing, thanks!
wrote...

Yesterday
Correct Slight Smile TY
wrote...

2 hours ago
This site is awesome
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1065 People Browsing
Related Images
  
 595
  
 362
  
 288
Your Opinion