C Tutorial/Preprocessor/undef
undef
To undefine the value defined by "#define" and specify a new value.
#include <stdio.h>
#define VAL 40;
#undef VAL
#define VAL 50
main()
{
printf ("%d\n", VAL);
}
50
To undefine the value defined by "#define" and specify a new value.
#include <stdio.h>
#define VAL 40;
#undef VAL
#define VAL 50
main()
{
printf ("%d\n", VAL);
}
50