Question: What is NOT true about the following function with pass by reference parameters? int myFunc 1 ( const string &name, int &score ) ; Group

What is NOT true about the following function with pass by reference parameters?
int myFunc1(const string &name, int &score);
Group of answer choices
You may call the function like
string name = "abc";
cout << myFunc1(name,15);
The "name" parameter cannot be modified in the function body
The "score" parameter can be used to return a value by modifying it in the function body
You will enhance the performance by passing the "name" by reference

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!