Question: 1a. Can we change the value of the string inside the function if we match up the parameter and argument names? For example, change the
1a. Can we change the value of the string inside the function if we match up the parameter and argument names? For example, change the function prototype to: void get_sentence(string sentence);
1b. Can we change the value of the string inside the function if we change the function prototype to:
void get_sentence(string *sentence);
What else needs to be changed when we make the function call? Inside the function?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
