A.5
B.6
C.7
D.8
[单选题]有如下程序: #define n 2 #define m N+1 #define NUM 2*m+1 main() { int i; for(i=1;i<=NUM;i++)printf("%d/n",i); } 该程序中的for循环执行的次数是_____。A.5B.6C.7D.8
[单选题]有如下程序:#define N 2#define M N+1#define NUM 2*M+1main(){int i;for(i=1;i<=NUM;i++)printf("%d\n",i);}该程序中的for循环执行的次数是A.5B.6C.7D.8
[单选题]有以下程序includedefineN5defineMN£«1definef(x)(x*M)main(){inti1,i2;i1=f(2);i2=有以下程序 #include <stdio.h> #define N 5 #define M N+1 #define f(x) (x*M) main() {int i1,i2; i1=f(2); i2=f(1+1); printf("%d%d/n",i1,i2); } 程序的运行结果是A.12 12B.11 7C.11 11D.12 7
[单选题]有以下程序includedefineN5defineMN£«1definef(x)(x*M)main(){ inti1,i2;i1=f(2);i2有以下程序 #include <stdio.h> #define N 5 #define M N+1 #define f(x) (x*M) main() { int i1,i2; i1=f(2); i2=f(1+1); printf("%d%d/n",i1,i2); } 程序的运行结果是A.12 12B.11 7C.11 11D.12 7
[单选题]有如下程序 main() {inta=2,b=£1,c=2; if(aif(b<0)c=0; elsec£«£«; printf("%d/n",c);有如下程序main(){ int a=2,b=-1,c=2;if(a A.0B.1C.2D.3
[单选题]有如下程序:main{ int a=2,b=-1.c=2;if(a<0)if(b<0)c=0;else c++;printf("%d\n",c);}该程序的输出结果是( )。A.0B.1C.2D.3
[单选题]有如下程序main() { int a=2,b=-1,c=2; if(a<b) c=1; if(b<0)c=0; else c++; printf("%d\n",c);}该程序的输出结果是A.0 B.1C.2 D.3
[单选题]有如下程序#define N 2#define M N+1#define NUM 2*M+1main(){ int i; for(i = 1; i <= NUM; i++) printf("%d/n",i);}该程序中for循环执行的次数是A.5 B.6 C.7 D.8
[单选题]有如下程序: # define N 2 # define M N+1 # define NUM 2*M+1 # main() { int i; for(i=1; i<=NUM; i++) printf("% d/n", i); } 该程序中的for循环执行的次数是______。A.5B.6C.7D.8
[单选题]设有如下程序段:x=2F.or i=1 To 10 Step 2x=x+iNext运行以上程序后,x的值是( )。A.26B.27C.38D.57