What is a macro in C Preprocessor?
Submitted by: MuhammadA macro is a preprocessor directive that provides a mechanism for token replacement in your source code. Macros are created by using the #define statement. Here is an example of a macro:
#define VERSION_STAMP "1.02"
Submitted by: Muhammad
#define VERSION_STAMP "1.02"
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. |