有如下程序 #include<iostream.h> #define N
题型:单项选择题
问题:
有如下程序 #include<iostream.h> #define N2 #define M N+1 #define NUM 2 * M+1 void main( ) { int i; for(i=1;i < =NUM;i++) cout < < i } 该程序中的for循环执行的次数是( )。
A.5
B.6
C.7
D.8
有如下程序 #include<iostream.h> #define N2 #define M N+1 #define NUM 2 * M+1 void main( ) { int i; for(i=1;i < =NUM;i++) cout < < i } 该程序中的for循环执行的次数是( )。
A.5
B.6
C.7
D.8