![]() Where header.h is a standard C header file. Standard header file directory is the path where all header files are stored. This variant of including header file, searches header file in the “standard header file directory”. We can include a file in two different ways. We use #include directive to include contents of another file (especially header file’s) to a program. #include preprocessor directive (File inclusion directive) I will explain them separately to make this post much easier to consume. In this post, I won’t explain stringize, token pasting operator, #pragma, #error and #null directives. #ifdef, #ifndef and #endif preprocessor directive.Parameterized Macros (Function like Macros).#define and #undef preprocessor directive.While, other statements are terminated by semicolon.Ĭ preprocessor is a Micro preprocessor which compiles the code before the compilation. While it is not mandatory for other C statements to start in separate line. It has different syntax from normal C statements compiled by the compiler, for example: ![]() Please remember that, C preprocessor is not a part of C compiler. When we compile a C program, C preprocessor processes the statements which are associated with it and expand them to make the code for further compilation. It instructs the C compiler to do some specific (required) pre-processing before the compilation process. A C preprocessor is a statement substitution (text substitution) in C programming language.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |