Check if a macro has been defined : Macro Basic « Macro Preprocessor « C / ANSI-C






Check if a macro has been defined

#include <stdio.h>

#define VAL 40;
#undef  VAL 

#define  VAL 40 

main()
{
  printf ("%d\n", VAL);
}



           
       








Related examples in the same category

1.Use macro in calculation
2.Macro in different file