Question: Consider the following program segment and answer the questions. 1 Time getTime () ( 2 Time *myTime = new Time (3, 0, 0), 3 return
Consider the following program segment and answer the questions. 1 Time getTime () ( 2 Time *myTime = new Time (3, 0, 0), 3 return *myTime, 4 } Modify the function definition to support return-by-reference. Modify the function definition to support return-by-reference using pointer. Modify the function definition to support return-by-value Modify the function definition to support return-by-reference via a parameter. Modify the function definition to support return-by-reference using pointer via a parameter
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
