问题
单项选择题
下列程序中的for 循环执行的次当次数是______。
#define N 2
#define M N+i
#define NUM 2*M+l
#main ( )
int i;
for (i=1;i<=NUM;i++) printf ("%d\n", i);
A.5
B.6
C.7
D.8
答案
参考答案:B
下列程序中的for 循环执行的次当次数是______。
#define N 2
#define M N+i
#define NUM 2*M+l
#main ( )
int i;
for (i=1;i<=NUM;i++) printf ("%d\n", i);
A.5
B.6
C.7
D.8
参考答案:B