Suppose two header files t1.h and t2.h contain the declarations for class T. What happens if you include both header files in your program?

A. The program will compile fine and the first header file that is included is used.
B. You will get multiple declaration error if the header files don't have the include guard.
C. The compile will automatically decides which implementation to use.
D. The program will compile fine and the first header file that is included is used if the header files have the include guard.


B. You will get multiple declaration error if the header files don't have the include guard.
D. The program will compile fine and the first header file that is included is used if the header files have the include guard.

Computer Science & Information Technology

You might also like to view...

A document can be saved as ____________________ text so it can be opened by other word processing software.

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

Computer Science & Information Technology

The formatting process __________.

a. writes a pattern of sectors on the disk surface b. records a copy of the boot routine on the first sector c. initializes control information d. all of the above

Computer Science & Information Technology

If a window is maximized in Windows 8, the center button of the three control buttons in the title bar changes to the Restore ________ button

A) Down B) Under C) Up D) Over

Computer Science & Information Technology

Which of the following should be checked first on the mobile devices someone is taking to another country?

A) Keyboard compatibility B) Wall adapter power compatibility C) Weight limitations D) Battery compatibility

Computer Science & Information Technology