笔果题库
计算机二级C语言程序设计
VIP题库
搜题找答案,就上笔果题库
以下语句或语句组中,能正确进行字符串赋值的是______。
搜题找答案,就上笔果题库
有以下程序(strcpy为字符串复制函数,strcat为字符串连接函数)#include #include main(){ char a[10]="abc",b[10]="012",c[10]="xyz";strcpy(a+1,b+2);puts(strcat(a,c+1));}程序运行后的输出结果是______。
搜题找答案,就上笔果题库
有以下程序#include #include main(){char str[12] = { ''s'',''t'' , ''r'' , ''i'' , ''n'' , ''g''} ;printf("%d\n", strlen( str ) );}程序运行后的输出结果是______。
搜题找答案,就上笔果题库
设有如下的程序段char str[]="Hello";char *ptr;ptr=str;执行完上面的程序段后,*(ptr+5)的值为______。
搜题找答案,就上笔果题库
有下列程序#include main(){ char v[4][10];int i;for(i=0; i
搜题找答案,就上笔果题库
有以下程序#include #include main(){char name[9] = "c##line";char* str = name;printf("%d,%d,%d,%d\n", sizeof(name), strlen(name), sizeof(str), strlen(str));}程序运行后的输出结果是______。
搜题找答案,就上笔果题库
有如下程序#include #include main(){printf("%d\n", strlen("0\n011\1"));}程序运行后的输出结果是______。
搜题找答案,就上笔果题库
设有以下语句:char str1[]="string",str2[8],*str3,*str4="string";则下列选项中,______不是对库函数strcpy的正确调用,此库函数用来复制字符串。
搜题找答案,就上笔果题库
有下列程序#include main(){ int i,j=0;char a[]="ab123c4d56ef7gh89 ",b[100];for(i=0; a[i]; i++)if(!(a[i] >= ''a'' && a[i]= ''0 '' && a[i]
搜题找答案,就上笔果题库
有下列程序#include main(){char b[] = "happynewyear";printf("%s%s","12345678"+4,b+8);}程序执行后的输出结果是______。