Multiple Choice
What is wrong with the following function body?
Void calculateint count, float price, float& cost)
{
If count < 0)
Cost=0.0;
Else
Cost=count*price;
Return;
}
A) void functions may not have a return statement.
B) void functions must return a value
C) nothing
D) can not mix reference and value parameters
Correct Answer:

Verified
Correct Answer:
Verified
Q17: What type of value does a void
Q18: Given the following function definition fragment, for
Q19: Functions can return at most one value.
Q20: When a void function is called, it
Q21: The values or variables listed in the
Q23: A simplified version of a function which
Q24: Given the following function definitions and program
Q25: What is the correct way to call
Q26: A stub is a function that is
Q27: It is acceptable to have both call-by-value