Multiple choice

How do you include a system header file called sysheader.h in a C source file?

  1. #include <sysheader.h>

  2. #incl "sysheader.h"

  3. #includefile <sysheader>

  4. #include sysheader.h

  5. #incl <sysheader.h>

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

System header files (those that come with the C compiler) are included using angle brackets: #include . This tells the preprocessor to look for the file in standard system directories. Double quotes (#include "filename.h") are used for user-defined header files, where the preprocessor first looks in the current directory.