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...

Which keyword is used to specify that a class will define the methods of an interface?

a. uses b. implements c. defines d. extends

Computer Science & Information Technology

The ____ setting of a site survey analyzer specifies the AP that will be involved in the test.

A. Destination MAC Address B. Continuous Link Test C. Packet Tx Type D. Delay Between Packets

Computer Science & Information Technology

The ________ criteria displays records that match either of two or more conditions

Fill in the blank(s) with correct word

Computer Science & Information Technology

A television screen measures approximately 16.5 in. high and 21.5 in. wide. A television is advertised by giving the approximate length of the diagonal of its screen. How should this television be advertised? Round your answer to the nearest inch. This television should be advertised as __________-in. TV.

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

Computer Science & Information Technology