Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started