A.strlen(str)
B.sizeof(str)
C.strlen(str+1)
D.sizeof(str-1)
[单选题]执行下列语句后,输出结果为steven的是char*str="steven";eout.write(str, );A.strlen(str)B.sizeof(str)C.strlen(str+1)D.sizeof(str-1)
[单选题]下列程序的输出结果是includevoid main(){char*str="12123434";int x1=0,x2=0,x3=0下列程序的输出结果是 #include<iostream.h> void main() {char*str="12123434"; int x1=0,x2=0,x3=0,x4=0,i; for(i=0;str[i]!='/0';i++) switch(str[i]) {case'1':x4++; case'2':X3++; case'3':
[单选题]下列程序的输出结果是includevoid main(){char*str="12123434"; int x1=0,x2=0,x3=下列程序的输出结果是 #include<iostream.h> void main() { char*str="12123434"; int x1=0,x2=0,x3=0,x4=0,i; for(i=0;str[i]!=‘/0’;i++) switch(str[i]) { case'l':x4++; case'2':X3++; case'3':
[主观题]以下三条输出语句分别输出什么?char str1[] = "abc";char str2[] = "abc";const char str3[] = "abc";const char str4[] = "abc";const char* str5 = "abc";const char* str6 = "abc";cout << boolalpha << ( str1==str2 ) << endl; // 输出什么?cout <&
[主观题]以下三条输出语句分别输出什么?char str1[] = "abc";char str2[] = "abc";const char str3[] = "abc";const char str4[] = "abc";const char* str5 = "abc";const char* str6 = "abc";cout << boolalpha << ( str1==str2 ) << endl; // 输出什么?cout <&
[单选题]下列程序的输出结果是______。 char*fun(char*str,int n) { int i; char*p=str; for(i=0;i<10;i++,str++) *str='a'+i; return++p; } main() { char a[10]; printf("%s/n",fun(a,10)); }A.ABCDEFGHIJB.abcdefghijC.bcdefghijD.不确定的值
[单选题]下面程序的执行结果是______。 main() {char str[]="quert?",*p=str; while(putchar(*p++)!='?'); }A.quertB.RvfsuC.quert?D.rvfsu?
[单选题]下列程序的输出结果是includevoid main( ){char*str="12123434";int xl=0,x2=0,x3=下列程序的输出结果是 #include<iostream.h> void main( ) {char*str="12123434"; int xl=0,x2=0,x3=0,x4=0,i; for(i=0;str[i]!='/0';i++) switch(str[i]) {case'1':x4++; case'2':x3++; case'3'
[单选题]已知a的ASCⅡ码为97,执行下面两个语句后,输出的结果为______。 char c1=97;c2=98; printf("%d%c",c1,c2);A.97 98B.97 bC.a 98D.a b
[单选题]执行下面语句后,输出结果为()。A . 10B . 30C . 10和30D . 30和10