若有如下程序: main() {static char*a[3]={"123","456","789"); char **b; b=a; ++b; printf("%s,%s\n",*a,*a+1); printf("%s,%s\n",*b,b[1]); } 则程序运行后的输出结果是( )。A.123,456, 456,789B.123,23 456,56C.123,23 456,789D.123,456 456,56
若有如下程序: main() {static char*a[3]={"123","456","789"); char **b; b=a; ++b; printf("%s,%s\n",*a,*a+1); printf("%s,%s\n",*b,b[1]); } 则程序运行后的输出结果是( )。
A.123,456, 456,789
B.123,23 456,56
C.123,23 456,789
D.123,456 456,56
相关考题:
有以下程序void swap(char *x,char *y){ char t;t=*x; *x=*y; *y=t;}main(){ char *s1="abc",*s2="123";swap(s1,s2);printf(" % s, % s\n",s1,s2);}程序执行后的输出结果是A)123,abcB)abc,123C)1bc,a23D)321,cba
执行下列程序时输入:123456789,输出结果是()main(){ char s[100]int c,i;scan 执行下列程序时输入:123<空格>456<空格>789<回车>,输出结果是( ) main() { char s[100] int c,i; scanf("%c",C) ; scanf("%d",i); scanf("%s",s); printf("%c,%d,%s\n",c,i,s); }A.1,456,789B.1,23,456C.1,23,456,789D.123,456,789
有以下程序: void swap(char*x,char*y) {cbar t; t=*x; *x=*y; *y=t; } main() {char*s1="abc",*s2="123"; swap(s1,s2);printf("%s,%s\n",s1,s2); } 程序执行后的输出结果是( )。A.123,abcB.abc,123C.1bc,a23D.321,cba
有以下程序: void swap(char*x,char*y) { char t; t=*x;*x=*y;*y=t; } main { char*s1="abe",*s2="123": swap(s1,s2); printf("%s,%s\n",s1,s2); } 程序执行后的输出结果是( )。A.123,abeB.abc.123C.1bc,a23D.321,cba
有以下程序:void swap(char*x,char*y){ char t;t=*x;*x=*y;*y=t;}main{ char*s1=abe,*s2=123:swap(s1,s2);printf(%s,%s\n,s1,s2);}程序执行后的输出结果是( )。A.A.123,abeB.abc.123C.1bc,a23D.321,cba
有以下程序 void swap(char* x,char *y) {char t; t= *x; *X= *y; *y=t; } main() {char*s1:"abc",*s2="123"; swap(s1,s2);printf("%s,%s\n",s1,s2); } 程序执行后的输出结果是A.123,abcB.abc,123C.1bc,a23D.321,cba
有以下程序 void swap(char *x,char *y) {char t; t=*x;*x=*y;*y=t; } main() {char *s1="abc",*s2="123"; swap(s1,s2); printf("%s,%s\n",s1,s2); } 程序执行后的输出结果是______。A.123,abcB.abc,123C.1bc,a23D.321,cba
执行下列程序时输入:123456789,输出结果是()。main(){char s[100];int c, i;sc 执行下列程序时输入:123<空格>456<空格>789<回车>,输出结果是( )。 main() { char s[100]; int c, i; scanf("%c",c); scanf("%d",i); scanf("%s",s); printf("%c,%d,%s\n",c,i,s); }A.1,456,789B.1,23,456C.1,23,456,789D.123,456,789
有以下程序:void swap (char *x,char *y){char t; t=*x,*x=*y;*y=t;}main(){char* s1="abc",*s2="123"; swap(s1,s2); printf("%s,%s\n",s1,s2);}程序执行后的输出结果是( )。A.123,abcB.abc,123C.1bc,a23D.321,cba