以下程序运行后的输出结果是( ) main() { char s[]="1234", *ps; for(ps=s;ps<s+3;ps++)printf("%c",ps); printf("\n"); }A.123B.112123C.1234D.乱码

以下程序运行后的输出结果是( ) main() { char s[]="1234", *ps; for(ps=s;ps<s+3;ps++)printf("%c",ps); printf("\n"); }

A.123

B.112123

C.1234

D.乱码


相关考题:

有以下程序main(){ char s[]={"aeiou"},*ps;ps=s; printf("%c\n",*ps+4);}程序运行后的输出结果是A)aB)eC)uD) 元素 s[4] 的地址

以下程序运行后的输出结果是。main(){ char s[]="GEFDCBA"; int p=6;While(s[p]!=’D’){ printf("%c",p);p=p-1; }}

有以下程序:void main(){char s[]="159",*p;p=s;printf("%c",*p++);printf("%c",*p++);}程序运行后的输出结果是( )。A.15 B.16 C.12 D.59

有以下程序: main() { char s[]="159",*P; P=s; printf("%c",*P++);printf("%c",*P++); } 程序运行后的输出结果是( )。A.15B.16C.12D.59

有以下程序 main() { char str[][10]={"China","Beijing"},*p=str; printf("%s\n",p+10); } 程序运行后的输出结果是A.ChinaB.BeijingC.ngD.ing

有以下程序 main() { char s[]="Yse\n/No",*ps=s; puts(ps+4); *(ps+4)=0; puts(s); } 程序运行后的输出结果是(选项D中的第一行是空行)A.n/No Yes /NoB./No YesC.n/No yes /NoD./No Yes

有以下程序 main() {char s[]={"aeiou"},*ps; ps=s; printf("%c\n",*ps+4); } 程序运行后输出的结果是______。A.aB.eC.uD.元素s[4]的地址

有以下程序 main( ) { char str[ ]="xyz",*ps=str; while(*ps) ps++; for(ps--;ps-str>=0;ps--) puts(ps);} 执行后输出结果是A.yz xyzB.z yzC.z yz xyzD.x xy xyz

有以下程序 main() { char s[]="159",*p; p=s; printf("%c",*p++); pritnf("%c",*p++); } 程序运行后的输出结果是A.15B.16C.12D.59

有以下程序: include main( ) {char s[ ] ="159" , * p;p=s;printf( "% c", * p + + 有以下程序: #include <stdio.h> main( ) { char s[ ] ="159" , * p; p=s; printf( "% c", * p + + ); printf("%~", * p++);}程序运行后的输出结果是( )。A.15B.16C.12D.59

有以下程序:include main( ){chars[] ="Yes\n/No",*ps=s;puts(ps +4); * (pa +4) =0;p 有以下程序: #include <stdio.h> main( ) { chars[] ="Yes\n/No",*ps=s; puts(ps +4); * (pa +4) =0; puts(s); }程序运行后的输出结果是( )。A.n/No Yes /NoB./No YesC./NO Yes /NoD.n/No Yes

以下程序运行后,输出结果是______。 define P4.5 define S(x)P*x*x include main() { 以下程序运行后,输出结果是______。 #define P4.5 #define S(x)P*x*x #include<stdio.h> main() { int a=2,b=3; printf("%.1f\n",S(a+b)); }A.49.5B.112.5C.18D.24

以下程序运行后的输出结果是main{ int p=30; printf("%d\n",(p/30?p/10 : p%3));}

有以下程序: main() { char s[]="Yes\n/No",*ps=s; puts(ps+4); *(ps+4)=0; puts(s); } 程序运行后的输出结果是(选项D中的第一行是空行) ( )。A.n/No Yes /NoB./No YesC./No Yes /NoD./No Yes

有以下程序: main() { char str[]="xyz", *ps=str; while(*ps) ps++; for(ps--;ps-str>=O;ps--) puts(ps); } 执行后的输出结果是( )。A.yz xyzB.z yzC.z yz xyzD.x xy xyz

有以下程序main(){ char str[]="xyz",*ps=str; while(*ps) ps++; for(ps--; ps-str>=0; ps--) puts(ps);} 程序的运行结果是A.yz B.z C.z D.x xyz yz yz xy xyz xyz

若有以下程序: #include 〈iostream〉 using namespace std; class sample { private: int i; public: void setvalue(int m) { i=m; } void fun(int m) { i+=m; } void disp() { cout〈〈i〈〈end1; } }; int main() { sample *ps; ps=new sample; ps-setvalue(20); ps-fun(5); ps-disp(); return 0; } 程序运行后,输出的结果是( )。A.15B.20C.25D.30

下列程序中,正确的为______。A.main() { int *pb=b; float 1>=15.25; print f("%d\n" ,*pb); }B.amin() { int a,*pa; a=10; *pa=a; prinffC%d",*pa); }C.main() { char s[20]; char *ps=s; scanf("%s",*p); printf("%s",*p); }D.main() { char str[10]; int *ps=str[0]; str="abcdefg"; printf("%s",*p); }

以下程序运行后的输出结果是【】。 include void main(){char s[]=“123456”,*p;for(p=s 以下程序运行后的输出结果是【 】。include<iostream.h>void main(){char s[]=“123456”,*p;for(p=s; p<s+2; p++)cout<<p<<end1;}

以下程序运行后,输出结果是()includess(char*s){char*p=s; while(*p)p++ return(p-s); 以下程序运行后,输出结果是( ) #include<stdio.h> ss(char *s) { char*p=s; while(*p) p++ return(p-s); } main() { char *a="abded" int i; i=ss(a) ; printf("%d\n",i); }A.8B.7C.6D.5

若有以下程序:includeusingnamespaceStd;classsample{ inti;publiC: sample(){} void 若有以下程序: #include <iostream> using namespace Std; class sample { int i; publiC: sample(){} void setvalue(int m) { i=m; } void fun(int m) { i+=m; } void disp() { cout<<i<<end1; } }; int main() { sample *ps; ps=new sample; ps->setvalue(20); ps->fun(5); ps->disp(); return 0; } 程序运行后,输出的结果是( )。A.15B.20C.25D.30

若有以下定义语句:chars[10];s=”1234”;printf(“%s/n”,s);则运行结果是:()A、输出1234B、输出1C、输出4D、编译不通过

若有下列语句,则不能代表字符o的表达式是()。chars[20]=”programming”,*ps=s;A、ps2B、s[2]C、ps[2]D、*(ps+2)

单选题有以下程序#includecharfun(char*c){ if(*c='Z'*c='A')  *c-='A'-'a'; return*c;}main(){ chars[81],*p=s; gets(s); while(*p) {  *p=fun(p);  putchar(*p);  p++; } printf();}若运行时从键盘上输入OPENTHEDOOR回车,程序的输出结果是(  )。AOPEN THE DOORBOPEN tHE dOORCopen the doorDOpen The Door

单选题有以下程序:#include main(){  char *s[6]={ABCD,EFGH,IJKL,MNOP,QRST,UVWX},**p; int i; p=s;  for(i=0;i4;i++)printf(%s,p[i]); printf();}程序运行后的输出结果是(  )。AABCDEFGHIJKLMNOPBABCDEFGHHKLCABCDDAEIM

单选题有以下程序:#include main(){ char s[10] = verygood, *ps = s; ps += 4; ps = nice; puts(s);}程序的运行结果是(  )。AniceBveryniceCnicegoodDverygood

单选题有以下程序: #include main() {  ints[3][2]={1,2,3,4,5,6},*ps[3],k;  for(k=0;k3;k++)  {   ps[k]=s[k];   printf("%d",*(ps[k]+1));  } } 程序的运行结果是(  )。A246B135C123D456