What is the difference | Sololearn: Learn to code for FREE!


What is the difference

#include "stdio.h" #include <stdio.h>


4/19/2021 2:03:23 PM


3 Answers

New Answer


Melu h> is meant for system headers, while #include "something. h" is for headers of your own program. System headers are searched for in usual system directories (and those included with -I argument), which your headers are searched for in current directory and then the same locations as system headers.


When you put a header file in quotes " " , the compiler will search for the header file in the current file path, whereas when put inside <>, it searches for it in global library path. generally angle brackets(<>) are used to include standard headers and double quotes for custom headers.


Also use the search bar: https://www.sololearn.com/Discuss/2599828/what-is-the-difference-between-stdio-h-stdio-h-in-c