#include <stdio.h>

#define TEST "this is an example"


void main(){

char exp[30]="thie TEST is not that TEST";

printf("%s\n",exp);// 字符串中的宏定义不被替换;

printf(TEST);

printf("\n");

     #undef TEST   //#undef终止宏定义,


}

vv.jpg

#define与#undef相关