笔果题库
计算机二级C语言程序设计
VIP题库
搜题找答案,就上笔果题库
有以下程序#include main(){ char *a[]={"abcd","ef","gh","ijk"};int i;for(i=0;i
搜题找答案,就上笔果题库
有以下程序#include #include main(){ char str[][20]={"One*World","One*Dream!"},*p=str[1];printf("%d,",strlen(p));printf("%s\n",p);} 程序运行后的输出结果是______。
搜题找答案,就上笔果题库
有以下程序#include main(){ char p[]={''a'',''b'',''c''},q[10]={''a'',''b'',''c''};printf("%d %d\n",strlen(p),strlen(q)); }以下叙述中正确的是______。
搜题找答案,就上笔果题库
有以下程序#include main(){ char a[30],b[30];scanf("%s",a);gets(b);printf("%s\n%s\n",a,b);}程序运行时若输入:how are you? I am fine则输出结果是______。
搜题找答案,就上笔果题库
字符数组a和b中存储了两个字符串,判断字符串a和b是否相等,应当使用的是______。
搜题找答案,就上笔果题库
若有定义语句:char str1[]="string",str2[8],*str3, str4[10]="string";,库函数strcpy的功能是复制字符串,以下选项中错误的函数调用是______。
搜题找答案,就上笔果题库
有以下程序,其中函数f的功能是将多个字符串按字典顺序排序#include void f(char *p[],int n){ char *t;int i,j;for(i=0;i
搜题找答案,就上笔果题库
有以下程序#include void fun(char *a, char b){ while(*(a++) != ''\0'');while (*(a-1)
搜题找答案,就上笔果题库
有以下程序#include#includechar *p[10];int n=0;int fun(char *q){int len=strlen(q);n=0;p[n]=q;if(len>1) p[++n]=q+1;if(len>3) p[++n]=q+3;if(len>5) p[++n]=q+5;return n;}void main(){char s[100];gets(s);n=fun(s);for(--n;n>=0;n--)printf ("%s\n", p[n]);}程序运行时输入:HELLO WORLD!,则输出结果是______。
搜题找答案,就上笔果题库
有以下程序#include main(){ char b[4][10]; int i;for(i=0;i=0;i--)printf("%s ",b[i]);printf("\n");}执行时若输入: Peach flower is pink.,则输出结果是______。