10_06.c

来自「浙大颜晖视频课件」· C语言 代码 · 共 23 行

C
23
字号
/*【例10-6】宏的作用范围。*/

#include <stdio.h>
#define  A  "This is the first macro"
void  f1( )
{
    printf("A");
    printf("\n");
}
#define  B  "This is the second macro" 
void  f2( )
{
    printf(B); 
}
#undef  B
int main(void)
{
   f1( );
   f2( );

   return 0;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?