basic difference between #include<> and #include""

This is a discussion on basic difference between #include<> and #include"" within the C Programming forums, part of the General Programming Boards category; hello all, please tell me the basic difference between #include "file.h" and #include<file.h>... please add the example if anybody can.... ...

  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    17

    basic difference between #include<> and #include""

    hello all,


    please tell me the basic difference between #include "file.h"
    and #include<file.h>...


    please add the example if anybody can....


    Thanks in adevance

    Regards,
    Gunjan Sethi

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    22,256
    Generally, the <> version would include a header that is in some path designated for the standard library and other headers provided by the compiler, or otherwise installed.

    The "" version would include a header that is in a path that is specified by you as containing headers to be included (or typically relative to the current directory). If no such header is found in those search paths, the search is then conducted as if the <> version was used instead.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21