what is the difference between #include<> and #include”…”?

Answers were Sorted based on User's Feedback



what is the difference between #include<> and #include”…”?..

Answer / kush joshi

#include<>, include the predefined header files, but
#include"...." include the userdefined header files in c
program. in this within "...." we mention the path where
the users header file is stored.

Is This Answer Correct ?    7 Yes 2 No

what is the difference between #include<> and #include”…”?..

Answer / anandi

Both #include<> and #include" " are similar used to include
the header files.....But we can use both #include<> and
#include" " for predefined header files...... At the same
time we can not use the #include<> for the user-defined
header files..... We should use #include" " for the user-
defined header files......

Is This Answer Correct ?    2 Yes 0 No

what is the difference between #include<> and #include”…”?..

Answer / shrikanth s.h

#include<>, include the predefined header files,
#include"...." include the userdefined header files where
the control will start searching the file into the current
directory, we should mention the path where it should search.

Is This Answer Correct ?    0 Yes 0 No

what is the difference between #include<> and #include”…”?..

Answer / hrpynux@gmail.com

For #include "" a compiler normally searches the folder of the file which contains that include and then the other folders. For #include <> the compiler does not search the current file's folder.

Is This Answer Correct ?    0 Yes 0 No

what is the difference between #include<> and #include”…”?..

Answer / sravankumar

The #include<> and #include" " are almost same, but #include<>
searches the included file in predefined default location(This predefined default location is often an INCLUDE environment variable that denotes the path to your include files)i.e searches the location where the predefined function are present in installed C language, whereas #include" " searches the included file in the current directory first , if not found then goes to the predefined default location.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C Interview Questions

what is difference between null and nul in c language

2 Answers  


what is difference between array,strutter,union and pointers

3 Answers   CTS, Lovely Professional University, Mannar Company,


write a c program in such a way that if we enter the today date the output should be next day's date.

0 Answers  


Why do we write return 0 in c?

0 Answers  


What is infinite loop?

0 Answers  






Explain the array representation of a binary tree in C.

0 Answers   Genpact,


A.C func() { pritnf(" in fuction %d",MACRO); } MAIN.c testfunc() { #define MACRO 10 printf("in test function %d", MACRO); } main() { printf("in main %d",MACRO); func(); testfunc(); getch(); }

2 Answers   Wipro,


Should I learn data structures in c or python?

0 Answers  


What is the stack in c?

0 Answers  


Can you write the algorithm for Queue?

0 Answers   College School Exams Tests, TCS,


what is the output of the code and how? main() { int *ptr,x; x=sizeof(ptr); printf("%d",x); }

1 Answers  


provide an example of the Group by clause, when would you use this clause

0 Answers  


Categories