Question: Modify this function: void myFunction(string message , int num ) { } so that the parameter message has a default value of none and is

Modify this function:

void myFunction(string message, int num) { }

so that the parameter message has a default value of "none" and is passed by reference, and the parameter num has a default value of 0. Hint, you'll have to use the string constructor to convert "none" from a char * to a string object.

Write what the function declaration would look like?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!