By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,361 Members | 1,683 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,361 IT Pros & Developers. It's quick & easy.

what is < > & " "

P: 1
Hello, I want to ask that what is the difference between to define
#include<stdio.h> and
#include" filename.c"
Mar 1 '07 #1
Share this Question
Share on Google+
3 Replies


P: 25
I'm newbie with C++ too, correct my if I'm wrong

#include<stdio.h> <== Include file stdio.h in the library of C Header File
#include" filename.c" <== Include file filename.c with a specific path of that file
Mar 1 '07 #2

P: 25
If you want to know what stdio.h does, read the Reference here
http://www.cplusplus.com/reference/clibrary/cstdio/
Mar 1 '07 #3

Banfa
Expert Mod 5K+
P: 8,916
Using angle brackets in your #include <...> causes the compiler to only search the include path when looking for a header file.

Using quotes in your #include "..." causes the compiler to search in the same directory as the current file first then search the include path when looking for a header file.

Generally speaking put your own headers in "..." and library headers inb <...>
Mar 1 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.