What is wrong with this code?
```
float CalcCost( int unit )
{
float cost;
cost = 5.59 * unit;
return cost;
}
```
A. The function name is invalid.
B. The return type should be int.
C. You can’t have math statements inside a function.
D. Nothing is wrong with it.
D. Nothing is wrong with it.
Computer Science & Information Technology
You might also like to view...
A group of fields, shown as a row in a data source, is considered a:
A) column. B) merge field. C) record. D) data source.
Computer Science & Information Technology
Which of the following is an example of an appropriate name for a control?
A. BtnMessage B. btnExit C. labelmessage D. housepicturebox
Computer Science & Information Technology