DEF:- The C Preprocessor or cpp is the macro processor for the C and C++ programming language.It provide the ability for the inclusion of header file, macro expansion ,conditional compilation( #if,#ifdef,#ifndef,#else,#elif,#endif ) and line control. NOTE:- preprocessor directive are executed before compilation.All preprocessor directive starts with the # hash-symbol. There any many preprocessor directives in c language.In the figure there are two #if written. 1)#include:- The #include preprocessor directive is used to paste code of given file into current file. It is used include system-defined and user-defined header files. If included file is not found, compiler renders error. By the use of #include directive, we provide information to the preprocessor where to look for the header files. There are two variants to use #include directive. (a) #include <filename> :- The #include <filename> tells the compiler to look for the directory where system header file...
Comments
Post a Comment