Question: 1. Take the code that is in this folder and change it to use references to be more efficient and safe. (If you don't expect
1. Take the code that is in this folder and change it to use references to be more efficient and safe. (If you don't expect the variable to change in the function, do not allow it to change)
2. What is wrong with the following program:
int main()
{
int score;
score = 1000;
float& rScore = score;
return 0;
}
3. What is wrong with this code:
int& plusThree(int number)
{
int threeMore = number+3;
return threeMore;
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
