What are types of Preprocessor in C?
Submitted by: Muhammad► #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.
Submitted by: Muhammad
► #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.
Submitted by: Muhammad
Read Online C Preprocessor Job Interview Questions And Answers
Top C Preprocessor Questions
☺ | Tell us bitwise shift operators? |
☺ | Can you please explain the scope of static variables? |
☺ | What do you know about the use of bit field? |
☺ | What is typedf? |
☺ | Do you have any idea about the use of "auto" keyword? |
Top C Programming Categories
☺ | C Functions Interview Questions. |
☺ | C Pointers Interview Questions. |
☺ | C Preprocessor Interview Questions. |