Answer the following questions true (T) or false (F)

1. The include statement, #include “file.h” looks first in the system defined directory for file.h then, if the file is not found, it looks in the user’s current directory. (Windows PC and Macintosh users sometimes use “folder” for what I call “directory”.)

2. The include statement, #include looks in the system defined directory for the file, file.h. (Windows PC and Macintosh users sometimes use “folder” for what I call “directory”.)

1. False
Explanation: The question had it backwards. The #include “file.h” makes the preprocessor look in the user’s current directory first, then in the system defined directory.
2. True
Explanation: Every system has one or more include directories that C++ compilers search for include files. The < > in #include signal the preprocessor to look in the system directory.

Computer Science & Information Technology

You might also like to view...

Match the following terms with their description

I. BI II. Digital dashboard III. KPI IV. Data model V. Relational data A. "Big picture" view of the business B. Used to analyze an organization's data C. Collection of tables D. Quantifiable measure E. Examples include a person, place, or event

Computer Science & Information Technology

Which of the following factors influences information technology (IT) related initiatives?

a. A company’s internal control system b. A company’s balance sheet c. Career growth of employees d. The values of IT stakeholders

Computer Science & Information Technology