Question: Suppose the song() function has this prototype: void song(const char * name, int times); a. How would you modify the prototype so that the default
Suppose the song() function has this prototype:
void song(const char * name, int times);
a. How would you modify the prototype so that the default value for times is 1?
b. What changes would you make in the function definition?
c. Can you provide a default value of "O, My Papa" for name?
Step by Step Solution
3.44 Rating (157 Votes )
There are 3 Steps involved in it
a Modified by adding an empty parenthesis after the parameter name ... View full answer
Get step-by-step solutions from verified subject matter experts
