Write a preprocessor command that uses the #undef command.


Difficulty level
This exercise is mostly suitable for students
#define DEBUG 1
/* In this section of the program, occurrences of DEBUG */
/* are replaced with 1, and the expression defined( DEBUG ) */
/* evaluates to TRUE. *.
#undef DEBUG
/* In this section of the program, occurrences of DEBUG */
/* are not replaced, and the expression defined( DEBUG ) */
/* evaluates to FALSE. */

Back to the list of exercises
Looking for a more challenging exercise, try this one !!
Decimal to binary