Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Which statement is incorrect? The include statement. (include looks in the syste

ID: 3782264 • Letter: W

Question

Which statement is incorrect? 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".) You can use definite to define a name for a symbol 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")Class. what must the constructors be named? A class is preferably written as two files: one interface (or include) file with the file name extension .h and an implementation file with the file name extension of cpp. Which of the following are the correct preprocessor commands necessary to prevent multiple inclusions of header files? #indef HEADER H #define HEADER H//declarations tor header, h go here #indef HEADER H//declarations for header h go here #endif #define HEADER H #indef HEADER H//declarations tor header.h go here #endif #include "header.h"

Explanation / Answer

which of the follwoing are the correct preprocessors commands to prevent multiple inclusions of
header files

sol:

#ifdef HEADER_H
#define HEADER_H
//declaration for header.h go here
#endif

*****************************************************************************************