0 votes
in C Plus Plus by
How do you override a defined macro in C Programming?

1 Answer

0 votes
by

To override a defined macro we can use #ifdef and #undef preprocessors as follows:

  • #ifdef A
  • #undef A
  • #endif
  • #define A 10

If macro A is defined, it will be undefined using undef and then defined again using define.

...