Question: In the following code segment, what does the return statement do ? double avg ( double x , double y ) { return ( x
In the following code segment, what does the "return" statement do
double avgdouble x double y
return x y;
Group of answer choices
It simply tells the computer to start the calculation.
It indicates that the calculation should only be performed when the user presses the Returnor Enter key.
It specifies the value the function will send back to the calling party.
It returns the values of x and y to the physical memory.
None of the options
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
