网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
以下程序段 int a=10,b=50,c=30; if(a<b) {a=b;b=c;c=a;} printf("a=%2d b=%2d c=%2dn",a,b,c); 的输出结果是()
A.a=10 b=50 c=10
B.a=10 b=30 c=10
C.a=50 b=30 c=10
D.a=50 b=30 c=50
参考答案和解析
G01G41X10Y30D02F50
更多 “以下程序段 int a=10,b=50,c=30; if(a<b) {a=b;b=c;c=a;} printf("a=%2d b=%2d c=%2dn",a,b,c); 的输出结果是()A.a=10 b=50 c=10B.a=10 b=30 c=10C.a=50 b=30 c=10D.a=50 b=30 c=50” 相关考题
考题
执行以下程序时输入 1234567CR, 则输出结果是 _[6]_______ .#include stdio.hmain(){ int a=1,b;scanf("%2d%2d",a,b);printf("%d %d\n",a,b);}
考题
有以下程序段int a,b,c;a=10; b=50; c=30;if(ab)a=b,b=c;c=a;printf( " a=%d b=%d c=%d\n " ,a,b,c);程序的输出结果是A)a=10 b=50 c=10B)a=10 b=50 c=30C)a=10 b=30 c=10D)a=50 b=30 c=50
考题
( 39 )有以下程序include stdio.hmain (){ int a=2,b=2,c=2;printf ( " %d\n " ,a/bstdio.hmain (){ int a=2,b=2,c=2;printf ( " %d\n " ,a/bc ) ;}程序运行后的输出结果是A ) OB ) 1C ) 2D ) 3
考题
有以下程序#include stdio.hmain(){ int a=1,b=0;printf("%d,",b=a+b);printf("%d\n",a=2*b);}程序运行后的输出结果是A)0,0B)1,0C)3,2D)1,2
考题
下列程序段的输出结果是:int a=1234;float b=123.456;double c=12345.54321;printf("%2d,%2.1f,%2.1f",a,b,c);A.无输出B.12,123.5,12345.5C.1234,123.5,12345.5D.1234,123.4,1234.5
考题
有以下程序: main { int x=102,y=012; printf("%2d,%2d\n",x,y); } 执行后输出结果是( )。A.10,01B.02,12C.102,10D.02,10
考题
有以下程序段 int a,b,c; a=10; b=50; c=30; if(a>b)a=b, b=c; c=a; printf("a=%d b=%d c=%d\n",a,b,c); 程序的输出结果是______。A.a=10 b=50 c=10B.a=10 b=50 c=30C.a=10 b=30 c=10D.a=50 b=30 c=50
考题
有以下程序#include stdio.hmaain( ){ int a=12,c;c=(a2)1;printf(”%d\n”,c);}程序运行后的输出结果是A)3B)50C)2D)96
考题
以下C程序段的输出结果是(30)。 include void prt(int*x,Int*y,int*z){ printf(
以下C程序段的输出结果是(30)。 #include<stdio.h> void prt(int*x,Int*y,int*z){ printf("%d,%d,%d\n",++*x,++*y,*(z++)); } void main(){ int a=10,b=40,c=20; Prt(a,b,c); Prt(a,b,c); }A.11,42,31 12,22,41B.11,41,20 12,42,20C.11,21,40 11,21,41D.11,41,20 12,42,22
考题
下列程序段的输出结果是int a=1234;float b=123.456;double c=12345.54321;printf("%2d,%2.1f,%2.1f",a,b,c);A.无输出 B.12,123.5,12345.5 C.1234,123.5,12345.5 D.1234,123.4,12345.5
考题
有以下程序:includemain(){int x=102,y=012; printf("%2d,%2d\n",x,y);}执行后的输出
有以下程序: #include <stdio.h> main() { int x=102,y=012; printf("%2d,%2d\n",x,y); } 执行后的输出结果是( )。A.10,01B.02,12C.102,10D.02,10
考题
以下程序段的输出结果是( )。 int a=1234; float b=123.456; double c=12345.54321; printf("%2d,%2.1f,%2.1f",a,b,c);A.无输出B.12,123.5,12345.5C.1234,123.5,12345.5D.1234,123.4,1234.5
考题
下列程序运行时输入1234567,则输出结果是______。includemain(){ int a=1,b;scanf("
下列程序运行时输入1234567<CR>,则输出结果是______。include<stdio.h>main(){ int a=1,b;scanf("%2d%2d",a,b);printf("%d %d\n", a,b);}
考题
执行以下程序时输入1234567,则输出结果是【 】。 includemain(){int a=1,b; scanf("%2
执行以下程序时输入1234567<CR>,则输出结果是【 】。include <stdio.h>main(){ int a=1,b;scanf("%2d%2d",a,b); prinff("%d %dhn",a,b);}
考题
执行以下程序时输入1234567CR,则输出结果是_[6]_______#include stdio.hmain(){ int a=1,b;scanf("%2d%2d",ab);printf("%d %d\n",a,b);
考题
有以下程序 main() { int x=102,y=012; printf("%2d,%2d/n",x,y); } 执行后输出结果是()A、10,01B、02,12C、102,10D、02,10
考题
单选题有以下程序:#includemain(){ int x=23; do { printf(%2d,x--); } while(!x);}程序的执行结果是( )。A
输出321B
输出23C
不输出任何内容D
陷入无限循环
考题
单选题有以下程序段:int a,b,c;a=10;b=50;c=30;if(ab)a=b,b=c;c=a;printf(a=%db=%dc=%d,a,b,c);程序的输出结果是( )。A
a=10 b=50 c=30B
a=10 b=50 c=10C
a=10 b=30 c=10D
a=50 b=30 c=50
考题
单选题有以下程序 main() { int x=102,y=012; printf("%2d,%2d/n",x,y); } 执行后输出结果是()A
10,01B
02,12C
102,10D
02,10
考题
单选题有以下程序段:int a,b,c;a=10;b=50;c=30;if(ab)a=b,b=c;c=a;printf(a=%db=%dc=%d,a,b,c);程序的输出结果是( )。A
a=10 b=50 c=10B
a=10 b=50 c=30C
a=10 b=30 c=10D
a=10 b=30 c=50
考题
填空题以下程序段的输出结果是()。 struct node {int a; float b; char c[10];} printf(“%d”,sizeof(struet node)) ;
考题
单选题有以下程序段 int x=3 do { printf(""%d"",x-=2); } while (!(--x)); 其输出结果是()A
1B
3、0C
1、-2D
死循环
热门标签
最新试卷