What is the difference between #include with angle brackets and with double quotes in C?

  • #include <stdio.h> searches the standard system include folders. Use it for standard and library headers.
  • #include "myheader.h" searches the folder of the current file first, and then the system folders. Use it for your own headers.

The exact search order depends on the compiler. See Preprocessor and Macros.


Learn more about the similar topics:
Tutorials
C Preprocessor and Macros
C File Handling
C Read From a File
C Command Line Arguments
Exercises & Assignments
No Content Found.
Interview Questions & Answers
What is the difference between const and #define in C?
What is the difference between #include with angle brackets and with double quotes in C?
What is the difference between a macro and a function in C?