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
Get step-by-step solutions from verified subject matter experts
