问题
单项选择题
程序中头文件typel.h的内容是: #define N 5 #define M1 N*3 程序如下: #include"typel.h" #define M2 N *2 main( ) { int i; i=M1+M2; printf("%d\n",i); } 程序编译后运行的输出结果是( )。
A.10
B.20
C.25
D.30
答案
参考答案:C
程序中头文件typel.h的内容是: #define N 5 #define M1 N*3 程序如下: #include"typel.h" #define M2 N *2 main( ) { int i; i=M1+M2; printf("%d\n",i); } 程序编译后运行的输出结果是( )。
A.10
B.20
C.25
D.30
参考答案:C