Solved

What Is Wrong with the Following Function Body

Question 22

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions