- 单选在 C 语言中,字符数组 a 和 b 中存储了两个字符串,判断字符串 a 和 b 是否相等,应当使用的是()做这题 →
- 单选设有 char str[10],下列语句正确的是()。做这题 →
- 单选若 char a[10];已定义,以下语句中不能从键盘上给 a 数组的所有元素赋值的语句是()做这题 →
- 单选以下代码的输出结果是? #include<stdio.h> int main() { char str[] = "S\065AB"; printf("\n%d", sizeof(str)); return 0;做这题 →
- 单选下列描述中错误的是()做这题 →
- 单选下列描述中不正确的是____。做这题 →
- 单选下列关于字符数组的描述中错误的是( )。做这题 →
- 单选在C语言中,以 ____ 作为字符串结束标志做这题 →
- 单选下列数据中属于“字符串常量”的是( A )。做这题 →
- 单选已知char x[]="hello", y[]={'h','e','a','b','e'};, 则关于两个数组长度的正确描述是___B .做这题 →
- 综合#include <stdio.h> main( ) { char s[]=”abcdefg”; char *p; p=s; printf(“ch=%c\n”,*(p+5)); } 运行结果为: ch=f 首先定义一个字符型数组s,并用字符串abcdefg对s进行初始化; 然后定义一个字符型指针变量p; 对p进行初始化,将数组s的地址赋给p。因此此时p中存放的数组s的首地址,即数组中第一个元素s[0]的地址。 然后执行printf语句,输出表达式*(p+5)的值。p+5表示以p当前指向的位置起始,之后第5个元素的地址,即a[5]的地址。*(p+5)则表示该地址内所存放的内容,即a[5]的值f, 因此输出ch=f做这题 →
- 单选C语言中,″\\xfds″在内存中占用的字节数是( )做这题 →
- 单选设static char x[ ]=″12345″,y[ ]={′1′,′2′,′3′,′4′,′5′,′\0′};那么( )做这题 →
- 单选将两个字符串 s1 和 s2 连接起来, 正确的函数为 ( )做这题 →
- 单选有以下程序 txt main() { char a[]="abcdefg",b[10] = "abcdefg"; printf("%d %d\n",sizeof(a),sizeof(b)); } 执行后输出结果是( )做这题 →
- 单选有以下程序 c #include #include main() { char x[]="STRING"; x[0]=0; x[1]="\0"; x[2]='0'; printf("%d %d\n ",sizeof(x),strlen(x)); } 程序运行后的输出结果是____。做这题 →
- 单选有以下程序: #include <stdio.h> #include <string.h> main(){ char x[]="STRING"; x[0]=0; x[1]=\'0'; x[2]='0'; printf("%d %d\n ",sizeof(x),strlen(x)); } 程序运行后的输出结果是____。做这题 →
- 单选有以下程序 (strcat() 函数用来连接两个字符串), 程序运行后的输出结果是 ( ) #include <string.h> main(){ char a[20]="ABCD\0EFG\0", b[ ]="IJK"; strcat(a,b); printf("%s\n",a); }做这题 →
- 单选假定 a 为一个一维字符数组名, 则引用数组元素 a[k] 的正确形式为 ( ).做这题 →
- 单选有以下的程序段:char a[10], b[]="China"; a=b; printf("%s",a); 则____。做这题 →
- 单选以下不能将 s 所指字符串正确复制到 t 所指存储空间的是____。做这题 →
- 单选有以下程序 c main() {char c[]={'A','B','C','D','E','F','G','H','\0'};int n,m; n=sizeof(c);m=strlen(c); printf("%d,%d\n",n,m); } 程序运行后的输出结果是____。做这题 →
- 单选下列描述中不正确的是()做这题 →
- 单选有以下程序: #include <stdio.h> #include <string.h> main(){ char x[]="STRING"; x[0]=0; x[1]='0'; x[2]='0'; printf("%d %d\n ",sizeof(x),strlen(x)); } 程序运行后的输出结果是____。做这题 →
- 单选有以下程序 (streat() 函数用来连接两个字符串), 程序运行后的输出结果和结果。 #include <string.h> main(){ char a[20]="ABCD\0EFG\0", b[ ]="IJK"; strcat(a,b); printf("%s\n",a); }做这题 →
- 单选有以下的程序段:char a[10], b[] = "China"; a = b; printf("%s", a); 则 ____。做这题 →
- 单选有以下程序(strcat()函数用来连接两个字符串), 程序运行后的输出结果是(B) c #include main( ){ char a[20]="ABCD\0EFG\0", b[]="IJK"; strcat(a,b); printf("%s\n",a); }做这题 →
- 单选以下不能将 s 所指字符串正确复制到 t 所指存储空间的是____。做这题 →
- 单选有以下程序 main() {char c[]={'A','B','C','D','E','F','G','H','\0'};int n,m; n=sizeof(c);m=strlen(c); printf("%d,%d\n",n,m); } 程序运行后的输出结果是____。做这题 →
- 单选以下函数的功能是() fun (char s[], char t[]){ int i=-1; while(i++, s[i]==t[i] && s[i]!='\0'); return (s[i]=='\0' && t[i]=='\0');}做这题 →
- 单选以下不能将 s 所指字符串正确复制到 t 所指存储空间的是____。做这题 →
- 单选以下程序的运行结果是()。 c #include main() { static char s[30]="abcdefg"; static char t[]="abcd"; perl int i,j; i=0; while(s[i]!='\0') i++; j=0; while(t[j]!='\0') { s[i+j]=t[j]; j++; } s[i+j]='\0'; printf("%s\n", s); }做这题 →
- 单选以下程序的输出结果是()。 c #include main () {char st[20]="hello\0\t\' \\ printf ("%d%d\n", strlen (st), sizeof (st)); }做这题 →
- 单选若有以下程序段: char str[]=" ab\n\012\\""; printf( "%d",strlen(str)); 该程序段的输出结果是( )。做这题 →
- 单选设已定义 char c[8] = "Tianjin" 和 int j, 则下面的输出函数调用中错误的是 ( )。做这题 →
- 单选字符串 bodyCs 在内存中占用的字节数是( )。做这题 →
- 单选str1[20]=what\backslashn ,则 strlen(str1)的结果为( )。做这题 →
- 单选实现字符串连接的系统函数名是( )。做这题 →
- 单选有以下程序段,char c[5] = ['a', b', \0', c', \0'}; printf ("%s", c): 则运行的结果()做这题 →
- 判断下面指两个字符串所包含的字符个数相同时,才能比较字符串做这题 →
- 单选下面描述正确的是()。做这题 →
- 单选char a1[]="abc",a2[80]="1234";将 a1 串连接到 a2 串后面的语句是()。做这题 →
- 单选char a1[]="abc",a2[80]="1234";将 a1 串连接到 a2 串后面的语句是()。 javascript做这题 →
- 填空在 C 语言中,以____作为字符串结束标志。做这题 →
- 填空设有字符串 s 定义为:char s[] = "C language",则该字符串所占空间为____字节。做这题 →
- 填空执行语句 \mathsf { c h a r } \; \mathsf { s t r } [ 8 1 ] { = } \mathsf { a b c d e f } ;后,字符串 str 结束标志存储在 str[ _]。做这题 →
- 填空字符串"ab\n\012\""的长度是____。做这题 →
- 填空设有数组定义: char array[]="bysjsj"; 则数组 array 所占的空间为(7)字节做这题 →
- 填空已知:char str1[10],str2[10]={"books"};则在程序中能够将字符串"books"赋给数组 str1 的正确语句是()。做这题 →
- 单选下列选项中,能够满足*若字符串s1等于字符串s2,则执行ST*要求的是()。做这题 →