C Preprocessor Question: Download C Preprocessor PDF

What are types of Preprocessor in C?

Tweet Share WhatsApp

Answer:

► #define and #undef - Used for defining and undefining MACROS.
► #error - Used for Debugging
► #include - Used for combining source code files
► #if, #else, #elseif, and #endif - Used for conditional compilation similar to if - else statment.
► #ifdef and #ifndef - Conditional Compilation on basis of #define and #undef
► #line - Controls the program line and file macros.
► #pragma - Used for giving compiler instruction. Highly specific to the compiler being used.
► # and ## - Operators used for stringize and concating operation respectively.

Download C Preprocessor PDF Read All 33 C Preprocessor Questions
Previous QuestionNext Question
What are the advantages of C Preprocessor?What are the preprocessor categories?