Check if a macro has been defined
#include <stdio.h> #define VAL 40; #undef VAL #define VAL 40 main() { printf ("%d\n", VAL); }