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

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!