What is the difference between #include <header file> and #include “header file”?



What is the difference between #include <header file> and #include “header file”?..

Answer / Vinod Hembram

"The main difference between #include <header file> and #include "header file" in C lies in the search path for the header file. When you use "double quotes", the preprocessor looks for the header file in the current directory and system include directories. On the other hand, when using angle brackets (< >), it searches only within the system include directories. Using double quotes allows you to provide a more specific path to your header files if they are not located in the standard locations. "

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Design a program using an array that lists even numbers and odd numbers separately from the 12 numbers supplied by a user.

8 Answers  


What is extern c used for?

1 Answers  


What is the importance of c in your views?

1 Answers  


How do you prevent buffer overflows in C?

2 Answers  


what are the 10 different models of writing an addition program in C language?

1 Answers  


Why dont c comments nest?

1 Answers  


Explain the importance and use of each component of this string: Foo.Bar, Version=2.0.205.0, Culture=neutral, PublicKeyToken=593777ae2d274679d

1 Answers   TCS,


How can I call fortran?

1 Answers  


write a program to compare 2 numbers without using logical operators?

5 Answers   IBM,


Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?

1 Answers   TCS,


what is the difference between definition and declaration? give me some examples.

2 Answers   TCS,


What is a char c?

1 Answers  


Categories