Answer the following questions true (T) or false (F)
1. It is legal to replace the prototype
double totalCost(int numberParam, double priceParam);
with the more terse, alternate form
double totalCost(int, double);
2. In C++ Boolean value are represented only with the int values 0 for false and 1 for true.
1. True
Explanation: The alternate form applies only to function declarations. You will see this form in manuals. It is possible to omit variable names that will not be used in function definitions, but the text does not do this.
2. False
Explanation: In C++ the bool type is a real type, with values true and false, but 0 is interpreted as true and 0 as false, and true and false will be converted to 1 and 0 respectively.
You might also like to view...
According to MLA style, the correct punctuation for a citation at the end of a sentence is:
A) .(Smith21) B) (Smith,21). C) (Smith21). D) .(Smith21).
________ is a way to guarantee that the sender of a message cannot later deny having sent the message, and that the recipient cannot deny having received the message.
A. Confidentiality B. Integrity C. Authenticity D. Non-repudiation