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

Computer Science & Information Technology

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

Computer Science & Information Technology

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.

Computer Science & Information Technology

When channels are used, each physical device has its own __________.

a. control unit b. interface card c. access method d. port

Computer Science & Information Technology

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

Computer Science & Information Technology