Question: 5. (6 points) The following function uses reference variables as parameters. int doSomething (int &x, int &y) int temp-x x=y*10; y=temp * 10; return xy
5. (6 points) The following function uses reference variables as parameters. int doSomething (int &x, int &y) int temp-x x=y*10; y=temp * 10; return xy Rewrite the function so it uses pointers instead of reference variables 6. a). (6 points) Write a structure declaration for a structure named Car to hold the following data about a car: Make(string): Model(string): Year(int); Color (string): Cost(double). b). (6 points) Define an array (either static or dynamic) named forsale that holds two Car structures, and initialize the first element with the following data: Jeep, Wrangler, 2017, Red $23,000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
