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.
0 Comments