Tuesday, 25 December 2012

Header Files Diffrence

Diff B/w #include<stdio.h> and #include "stdio.h"?

when you use <>, the compiler searches for the file in the "usual" places for include-files, as well as looking in the directory of the including file. This will usually be /usr/include as well as other places, and you can specify more places in the parameters to the compile command.

if you just use quotes "", it only looks in the current directory, the one that contains the file that is being compiled.

No comments:

Post a Comment