网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

已知函数定义如下,函数abed的功能是( )。 abcd(char *s1,char *s2) { while(*s2++=*s1++); }

A.串复制

B.求串长

C.串比较

D.串反向


参考答案

更多 “ 已知函数定义如下,函数abed的功能是( )。 abcd(char *s1,char *s2) { while(*s2++=*s1++); }A.串复制B.求串长C.串比较D.串反向 ” 相关考题
考题 以下程序中函数scmp功能是返回形参指针s1和s2所指字符串中较小字符串的首地址。#includ<string. h>char *scmp(char *s1,char *s2){ if(strcmp(s1,s2)<0) return(s1); else return(s2);}main(){ int i;char string[20],str[3][20]; for(i=0;i<3;i++) gets(str[i]); strcpy(string,scmp(str[0],str[1])); //库函数 strcpy 对字符串进行复制 strcpy(string,scmp(stfing,str[2])); puts(string); }若运行时依次输入: abed、abba 和abc三个字符串,则输出结果为( )。A.abedB.abbaC.abcD.abca

考题 请读程序:includeincludemain(){char *s1="AbCdEf",*s2="aB"; s1++;s2++; 请读程序: #include<stdio.h> #include<string.h> main() { char *s1="AbCdEf",*s2="aB"; s1++;s2++; printf("%d\n",strcmp(s1,s2)); } 上面程序的输出结果是______。A.正数B.负数C.零D.不确定的值

考题 请读程序:includeincludemain(){char*s1="AbCdEf',*s2="aB"; s1++;s2++; p 请读程序: #include<stdio.h> #include<string.h> main() { char*s1="AbCdEf',*s2="aB"; s1++;s2++; printf("%d\n",strcmp(s1,s2)); } 上面程序的输出结果是_______。A.正数B.负数C.零D.不确定的值

考题 请读程序:includeincludemain(){char*s1="AbCdEf",*s2="aB"; s1++;s2++; p 请读程序: #include<stdio.h> #include<string.h> main() { char*s1="AbCdEf",*s2="aB"; s1++;s2++; printf("%d\n",strcmp(s1,s2)); } 上面程序的输出结果是______。A.正数B.负数C.零D.不确定的值

考题 请读程序:includeincludemain(){char*s1="AbCdEf",*s2="aB";s1++;s2++;pri 请读程序: #include<stdio.h> #include<string.j> main() { char*s1="AbCdEf",*s2="aB"; s1++;s2++; printf("%d\n",strcmp(s1,s2)); }上面程序的输出结果是______。A.正数B.负数C.零D.不确定的值

考题 以下程序中函数scmp的功能是返回形参指针s1和s2所指字符串中较小字符串的首地址: #include <stdio.h> #include <string.h> char *scmp (char *S1,char *s2) {if(strcmp(s1,s2)<0) return(s1); else return(s2); } main() { int i; char string[20],str[3] [20]; for(i=0;i<3;i++) gets(str[i]); strcpy(string,scmp(str[0],str[1]));/*库函数strcpy对字符串进行复制*/ strcpy(string,scmp(string,str[2])); printf("%s\n",string); } 若运行时依次输入abed、abba和abc三个字符串,则输出结果为( )。A.abedB.abbaC.abcD.abca

考题 下面函数的功能是 。 void (char *s1, char *s2) { while(*s2++=*s1++); }A.字符串反向B.字符串比较C.字符串连接D.字符串复制

考题 利用指针完成字符串复制函数char *strcpy(char *s1,char *s2) 。

考题 下面函数的功能是 。 void (char *s1, char *s2) { while(*s2++==*s1++); }A.字符串反向B.字符串比较C.字符串连接D.字符串复制