Given the following codenamespace globalType{void printResult();}which of the following statements is needed to access printResult?
A. globalType.printResult();
B. globalType.printResult;
C. globalType::printResult();
D. globalType:printResult();
Answer: C
You might also like to view...
Functional interface Comparator’s default method ________ reverses an existing Comparator’s ordering.
a. invert b. descending c. reversed d. downward
Answer the following questions true (T) or false (F)
1. The sprintf function is used to print string variables. 2. The function fgets will not cause buffer overflow. 3. You cannot declare a 2-dimensional array of characters the way you do for numeric data types.
When channels are used, each physical device has its own __________.
a. control unit b. interface card c. access method d. port
When a method in an object-oriented program causes an exception, such as dividing by 0, the method ____.
A. throws the error B. stops the exception C. catches the exception D. throws the exception