Answers:
You can use the #undef preprocessor directive to undefine (override) a previously defined macro.
we can redefine it with the same name and a new value.
 Posted by: rishabh
Contact rishabh
Assume 'NULL' is framework defined MACRO. If you wish to override, then, #ifdef NULL #undef NULL #define NULL ((void*)0) #endif Above will override already defined MACRO in the scope.
 Posted by: Ravi A Joshi
Contact Ravi A Joshi
An elegant way of doing this is shown below: #ifdef MACRO #undef MACRO #endif #define MACRO X
 Posted by: Nileshkumar
Contact Nileshkumar
c is a middle level language that come in category of structural programming language so there is no concept of overriding.one method to do this is to #undef the defined macro and then give new definition to macro.
 Posted by: kirti
Contact kirti
use the #undef preprocessor directive to undefine the define Macros.
 Posted by: Joji Joseph
Contact Joji Joseph
If you have the better answer, then send it to us. We will display your answer after the approval.