+ 1

What is the difference

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

19th Apr 2021, 2:03 PM
Melu
Melu - avatar
3 RĂ©ponses
+ 2
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.
20th Apr 2021, 10:57 PM
â€ïžđŸ˜PreranađŸ˜â€ïž
â€ïžđŸ˜PreranađŸ˜â€ïž - avatar
+ 9
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.
19th Apr 2021, 2:11 PM
Arsenic
Arsenic - avatar
19th Apr 2021, 2:50 PM
The future is now thanks to science
The future is now thanks to science - avatar