C Tutorial #include
main()
Multiple Files
Prototypes
Preprocessor
#define
#include

foo.h vs foo.c
#if
Multiple #includes -- #pragma once
Assert 
 
 

 

HOME
 

The "#include" directive brings in text from different files during compilation. #include is

a very unintelligent and unstructured -- it just pastes in the text from the given file and

continues compiling. The #include directive is used in the .h/.c file convention below

which is used to satisfy the various constraints necessary to get prototypes correct.

 

#include "foo.h"     // refers to a "user" foo.h file --

//    in the originating directory for the compile

 

#include <foo.h>     // refers to a "system" foo.h file --

//    in the compiler's directory somewhere

 Want To Know more with

Video ???

Contact for more learning: webmaster@freehost7com