更多“下面程序段的运行结果是 int n=0; while(n++<=2);printf("%d",n);”相关的问题
第1题
下面程序段的运行结果是 int n=0; while(n++<=2);printf("%d",n);
点击查看答案
第2题
假定所有变量均已正确说明,以下程序段运行后的输出结果是 。 int a=3,b=5,c=7; if(a>b) a=b; c=a; if(c!=a) c=b; printf("%d,%d,%dn",a,b,c);
A.程序段有语法错
B.3,5,3
C.3,5,5
D.3,5,7
点击查看答案
第3题
假定所有变量均已正确说明,以下程序段运行后的输出结果是 。 int a=3,b=5,c=7; if(a>b) a=b; c=a; if(c!=a) c=b; printf("%d,%d,%dn",a,b,c);
A.3,5,7
B.3,5,5
C.3,5,3
D.程序段有语法错
点击查看答案
第4题
【填空题】下面程序段的运行结果是 。 x=2; do{printf("*");x--;}while(!x==0);
点击查看答案
第5题
若变量已正确定义,有以下程序段: int a=3,b=5,c=7; if(a>b) a=b; c=a; if(c!=a) c=b; printf("%d,%d,%dn",a,b,c); 其输出结果是________。
A.程序段有语法错
B.3,5,3
C.3,5,5
D.3,5,7
点击查看答案
第6题
若变量已正确定义,有以下程序段: int a=3,b=5,c=7; if(a>b) a=b; c=a; if(c!=a) c=b; printf("%d,%d,%dn",a,b,c); 其输出结果是()。
A.程序段有语法错
B.3,5,3
C.3,5,5
D.3,5,7
点击查看答案
第7题
下面程序段的运行结果是__________. int n=0; while(n++<=2) printf("%d",n);
点击查看答案