程序中头文件type1.h的内容是:
#define N 5
#define M1 N*3
程序如下:
#include "type1.h"
#define M2 N*2
Main()
{int i;
I=M1+M2; printf("%d\n",i);
}
程序编译后运行的输出结果是______。
A.10
B.20
C.25
D.30
正确答案是C
程序中头文件type1.h的内容是:
#define N 5
#define M1 N*3
程序如下:
#include "type1.h"
#define M2 N*2
Main()
{int i;
I=M1+M2; printf("%d\n",i);
}
程序编译后运行的输出结果是______。
A.10
B.20
C.25
D.30
正确答案是C