简    介  在后面取消以前定义的宏定义

 

在此程序中,我们将取消在先前程序中对预处理器的定义。

 1 #include <stdio.h>
 2 int main( void )
 3 {
 4   #define MAX 200
 5       printf("MAX= %d\n",MAX);
 6   #undef MAX
 7   #define MAX 300
 8       printf("MAX= %d\n",MAX);
 9     return 0;
10 }

 

相关文章:

  • 2021-12-26
  • 2021-09-15
  • 2022-12-23
  • 2021-09-25
  • 2021-06-06
  • 2022-12-23
  • 2021-08-23
  • 2021-10-29
猜你喜欢
  • 2021-12-07
  • 2021-06-26
  • 2022-12-23
  • 2022-02-15
  • 2022-12-23
  • 2021-11-13
  • 2022-12-23
相关资源
相似解决方案