- 填空18下面不正确的字符串常量是______。 A)'abc' B)"12'12" C)"0" D)" "做这题 →
- 填空假设有声明“char s[10]="remind";,执行"puts(s+2);"后的输出结果是____。做这题 →
- 填空假设有声明"char ss[8]="Red";",则 sizeof(ss)的值是____。做这题 →
- 填空字符串"ab\n\012\""的长度是______。做这题 →
- 填空有一篇文章,共有 3 行文字,每行有 80 个字符。要求分别统计出其中英文大写字母、小写字母、数字、空格及其他字符的个数。做这题 →
- 综合判断两个字符串是否相等,应用()做这题 →
- 判断判断字符串的 a 和 b 是否相等,应用使用 if (a==b).做这题 →
- 单选假设有声明“char ss[8]="Red";,则 sizeof(ss)的值是____。做这题 →
- 填空若有 char a[]=""; 则字符数组 a 的内存空间大小是 ____。做这题 →
- 填空已知 char x[]="hello", y[]={'h', 'e'; a', 'b', 'e'};, 则关于两个数组长度的比较是 x______y。做这题 →
- 填空复制字符串的库函数是____,只写函数名即可.做这题 →
- 填空字符串连接函数____是将字符串s2连接到字符串s1的后面。做这题 →
- 单选若有定义语句:char s[10]="1234567\0\0";,则 strlen(s)的值是____。做这题 →
- 填空在 C 语言中,将两个字符串连接起来组成一个字符串时,选用____()函数。做这题 →
- 综合设有数组定义:char array[]="SuZhouUniversity\0"; 则数组 array 所占的存储空间为____。做这题 →
- 判断在 C 语言中,已知 char x[] = "hello"; y [] = {'h','e','l','l','o'}; 则数组 x 的长度大于数组 y 的长度。做这题 →
- 单选给出以下定义: char x[]="abcdefg"; char y[]={'a','b','c','d','e','f','g}; 则正确的叙述为____。做这题 →
- 单选已有定义:char a[]="xyz", b[]={'x', 'y', 'z'}; 以下叙述中正确的是____。做这题 →
- 单选在 C 语言中,以()作为字符串结束标志。做这题 →
- 填空若有 char a[] = "",则字符数组a的内存空间大小是做这题 →
- 综合(资料题,6分) 【综合题】 功能:删除字符串中的空格和"。 程序代码如下: javascript main(){ char s[100] ={"You can you up! No Can no BBI Eng" int i,j; /*代码开始*/ txt /*代码结束*/ printf("%s\n",s); } 运行输出结果: txt Youcanyouup!NoCannoBBI javascript做这题 →
- 填空(资料题,6分) 【综合题】 功能:删除字符串中的空格和"。 程序代码如下: javascript main(){ char s[100] ={"You can you up! No Can no BBI"}; int i,j; /*代码开始*/ txt /*代码结束*/ printf("%s\n",s); } txt 运行输出结果: Youcanyouup!NoCannoBB做这题 →
- 判断判断字符串的a和b是否相等,应用使用 if(a==b).做这题 →
- 单选若执行printf("%d\n",strlen("a\n\"\x41\008"));语句,其输出的结果是() lua做这题 →
- 多选在字符串比较中,下列哪些是不正确的( )做这题 →
- 填空下列程序段的输出结果是____。 txt main(){ char b[]="Hello,you"; b[5]=0; printf("%s\n", b ); }做这题 →
- 填空表达式 strcmp("abcdef", "ABCDEF") 的值是一个____。做这题 →
- 单选37 判断字符串a和b是否相等,应当使用______。做这题 →
- 单选38判断字符串s1是否大于字符串s2,应当使用______。做这题 →
- 单选39下面程序段输出两个字符串中对应相等的字符。请分析程序填空。 char x[]="programming"; char y[]="Fortran"; ini i=0; while (x[i]!='\0'&&y[i]!='\0') if (x[i]= =y[i]) printf("%c",______); else i++;做这题 →
- 单选40 下面描述正确的是_______。做这题 →
- 填空设有 static char str[]="Beijing";则执行 strcpy(str,"China");printf("%d\n",strlen(str));后的输出结果是____。做这题 →
- 填空当执行下面的程序时, 如果输入 ABC, 则输出结果是 ____。 c #include "stdio.h" #include "string.h" main() { char str[20]="0123456"; scanf("%s", str);strcat(str,"789"); puts(str); }做这题 →
- 填空若有以下代码: \text {char} a [ 1 0 ] = " 1 2 3 5 6 7"; \text {char} b [ 1 0 ] = " a b c d e f g"; \underline{strcpy(a,b);} \text {printf} (" 0 % - 0 5 o", a [ b [ 4 ] - b [ b [ 5 ] - b [ 3 ] ]) - 3 2); 如有空格请使用小写字母 v 代表 请写出输出结果____。做这题 →
- 填空char a[20]="goodbye",b[5]="luck"; strcpy(a+(strlen(a)-strlen(b)),b);printf("%s",a);上述语句执行后的输出结果为____.做这题 →
- 填空以下语句的输出结果是____。 txt printf("%d\n", strlen("\t\"\085\xff\n"));做这题 →
- 填空执行 printf("%d\n", strlen("ABCD\t\\123");后输出的值是____。做这题 →
- 填空当执行下面的程序时,如果输入 ABC,则输出结果是 ____。 #include "stdio.h" #include "string.h" main() { char str[20]="0123456"; scanf("%s", str);strcat(str,"789"); puts(str); }做这题 →
- 单选下面是有关 C 语言字符数组的描述,其中错误的是____。做这题 →
- 填空以下程序中函数 f 的功能是将 n 个字符串,按由小到小的顺序进行排序。 #include <string.h> void fun(char str[][12],int num){ char tmp[15]; int i,j; for(i=0;i<num-1;i++) for (j=i+1;j<num;j++) if(strcmp(str[i],str[j])>0) { strcpy(tmp,str[i]); strcpy(str[i],str[j]); strcpy(str[j],tmp);} } javascript main(){ char p[][12]={"abc","cdef","aabdef","dcdbe","aabd"}; fun(p,5); printf("%d\n",strlen(p[0])); dart system("pause"); }做这题 →
- 单选下述对C语言字符数组的描述中错误的是()。做这题 →
- 填空字符串 \mathbf { h e l l o } 在内存中占用_____个存储单元。做这题 →
- 综合比较两个字符串。(不要用 strcmp) void main(){ char s1[20],s2[20]; int i;int result; gets(s1); gets(s2); ____; while( (s1[i]==s2[i])____(s1[i]!='\0') ) i++; result=____; printf("%d\n", result); }做这题 →
- 单选以下选项中正确的语句组是() javascript做这题 →
- 单选下面是有关 C 语言字符数组的描述,其中错误的是()做这题 →
- 单选有以下程序 c #include c #include txt main() txt {char x[]="STRING"; javascript x[0]=0;x[1]='\0';x[2]='0'; txt printf("%d %d\n",sizeof(x),strlen(x)); }程序运行后的输出结果是()做这题 →
- 单选有以下程序 c #include c #include txt main() javascript {char a[20]="ABCD\0EFG\0",b[]="IJK"; txt strcat(a,b); printf("%s\n",a); }程序运行后的输出结果是()做这题 →
- 单选有以下程序 #include <stdio.h> c void fun(char *s) { while (*s) {if (*s%2==0) printf("%c",*s); s++;} } main() { char a[]={"good"}; fun(a);printf("\n"); 注意: 字母 a 的 ASCII 码值为 97, 程序运行后的输出结果是 ( )做这题 →
- 判断存储字符数组中的最后一个字符必须是'\0'。做这题 →
- 单选以下程序段的输出结果是()。 \text {char str} [ 1 5 ] = \text {"hello!"}; printf (" % d", \text {strlen} (str));含图做这题 →
1 / 4下一页