top of page
Frequently Asked C Language Interview Question & Answers
How do you override a defined macro?
You can use the #undef preprocessor directive to undefine (override) a previously defined macro. A way of an overriding macro is shown below.
#ifdef MACRO
#undef MACRO
#endif
#define MACRO X
bottom of page