+ 9

What is the difference between the following two #include directives?

#include "conio.h" #include <conio.h>

14th Dec 2018, 6:23 AM
AKS
AKS - avatar
4 Respostas
+ 10
I thought different is it right suggest me😅🤗 #include "conio.h" This command would look for the file conio.h in the current directory as well as the specified list of directories as mentioned in the include search path that might have been set up. #include <conio.h > This command would look for the file conio.h. in the specified list of directories only
14th Dec 2018, 6:45 AM
AKS
AKS - avatar
+ 4
Let me explain you a bit. When you include the main header file of c language which is stdio.h You write like this #include<stdio.h> Now if you have any custom header file created by you or someone other and you want to use it into your program you can include it like this #include "filename.h" Hope this makes sense. 😁
14th Dec 2018, 6:30 AM
Raj Chhatrala
Raj Chhatrala - avatar
+ 1
Bit of addition include with quotes, will also search inside compiler header path just like using angled bracket, if the header file isnt found in project dir
14th Dec 2018, 6:34 AM
Taste
Taste - avatar
0
The first includes a header file created by a third party, like you or someone else, the other one includes a header file the compiler already knows where to find, mostly, header files are kept in the '/usr/include' directory in gnu/linux
14th Dec 2018, 6:54 AM
Juan Sixto Nathan
Juan Sixto Nathan - avatar