Day#37 'C' Coding Challenge

Day#37 'C' Coding Challenge

What is the difference between the below two preprocessor directives?
  • #include <stdio.h>
  • #include "stdio.h"
-------------------------------------------------------------

We see both the directives used interchangeably by many programmers but there is a significant difference between them.

when #include <stdio.h> compiler searches in the built in include path. 
when user defines their own header files, then to include them #include "stdio.h" must be used. Compiler in this case searches in the working directory as our .h file shall be created inside that directory.

Post a Comment

0 Comments