C Preprocessor Question:
Download Questions PDF

What are types of Preprocessor in C?

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 Interview Questions And Answers PDF

Previous QuestionNext Question
What are the advantages of C Preprocessor?What are the preprocessor categories?