What is wrong with the following function body?

void calculate(int 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

c. nothing

Computer Science & Information Technology

You might also like to view...

A network manager wants a monthly report of the security posture of all the assets on the network (e.g. workstations, servers, routers, switches, firewalls). The report should include any feature of a system or appliance that is missing a security patch, OS update, etc. and the severity of risk that is associated with the missing update or patch. Which of the following solutions would work BEST to present this data?

A. Security policy B. Penetration scan C. Virus scan D. Vulnerability scanner

Computer Science & Information Technology

Software that is run directly from the Internet as cloud software is also referred to as _________. A. External service software B. Installed software C. Web-based software D. Utility software

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology