

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Difference between #include <filename> and #include "filename" in C/C++?
The difference between the two forms is in the location where the preprocessor searches for the file to be included.
#include <filename>
The preprocessor searches in an implementation-dependent manner, it searches directories pre-designated by the compiler. This method is usually used to include standard library header files.
#include "filename"
The preprocessor searches in the same directory as the file containing the directive. If this fails, then it starts behaving like the #include <filename> form. This method is usually used to include your own header files.
- Related Questions & Answers
- What is the difference between #include <filename> and #include “filename”?
- Get an Absolute Filename Path from a Relative Filename Path in Java
- Get an Absolute Filename Path from a Relative Filename with Path in Java
- Make PHP pathinfo() return the correct filename if the filename is UTF-8
- Unix filename pattern matching in Python
- Unix filename pattern matching in Python (fnmatch)
- Get filename from string path in JavaScript?
- C++ Program to count operations to make filename valid
- How to list one filename per output line in Linux?
- Determine if two filename paths refer to the same File in Java
- How to get the last dirname/filename in a file path argument in Bash?
- Java Program to strip a filename of its extension after the last dot
- How to select all distinct filename extensions from a table of filenames in MySQL?
- Java Program to remove file information from a filename returning only its path component
- Java Program to remove path information from a filename returning only its file component
Advertisements