网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
有以下函数 int fun(char *s) { char *t=s; while(*t++); return(t-s); } 该函数的功能是
A.比较两个字符串的大小
B.计算s所指字符串占用内存字节的个数
C.计算s所指字符串的长度
D.将s所指字符串复制到字符串t中
参考答案
更多 “ 有以下函数 int fun(char *s) { char *t=s; while(*t++); return(t-s); } 该函数的功能是A.比较两个字符串的大小B.计算s所指字符串占用内存字节的个数C.计算s所指字符串的长度D.将s所指字符串复制到字符串t中 ” 相关考题
考题
有以下函数int aaa(char *s){ char *t=s;while(*t++);t--;return(t-s);}以下关于 aaa 函数的功能叙述正确的是A) 求字符串s 的长度B) 比较两个串的大小C) 将串s 复制到串tD) 求字符串s 所占字节数
考题
以下与库函数strcmp(char *s, chat *t)的功能相等的程序段是()。
A.strcmp1(char *s, chat *t){ for ( ;*s++==*t++ ;)if (*s=='\0') return 0return (*s-*t)}B.strcmp2(char *s, char *t){ for( ;*s++==*t++ ;)if (!*s) return0return (*s-*t)C.strcmp3(char *s, char *t){ for ( ;*t==*s ;){ if (!*t) return 0t++s++}return (*s-*t)}D.strcmp4(char *s, char *t){ for( ;*s==*t;s++,t++)if (!*s) return 0return (*t-*s)}
考题
有以下函数int aaa(char *s){ char *t=s;while(*t++);t--;return(t-s);}以下关于aaa函数的功能的叙述正确的是A.求字符串s的长度B.比较两个串的大小C.将串s复制到串tD.求字符串s所占字节数
考题
有以下程序includevoidfun(char*t,char*s){while(*t!=0)t++;while((*t++=*s++)!=0);}m
有以下程序 #include <stdio.h> voidfun(char*t,char*s) {while(*t!=0) t++; while((*t++=*s++)!=0); } main() {char ss[10]="acc",aa[10]="bbxxyy"; fun(ss,aa); printf("%s,%s\n",ss,aa); } 程序的运行结果是A.accxyy,bbxxyyB.acc,bbxxyyC.accxxyy,bbxxyyD.accbbxxyy,bbxxyy
考题
有以下函数 int aaa(char *s) { char *t=s; while(*t++); t--; return(t-s); } 以下关于aaa函数的功能的叙述正确的是A.求字符串s的长度B.比较两个串的大小C.将串s复制到串tD.求字符串s所占字节数
考题
有以下程序 include void fun(char *t, char *s) { whil
有以下程序 #include <stdio.h> void fun(char *t, char *s) { while(*t!=0) t++; while( (*t++ = *s++ )!=0 ); main() { char ss[10]="acc",aa[10]="bbxxyy"; fun(ss, aa); printff"%s,%s\n", ss,aa); 程序的运行结果是A.accxyy, bbxxyyB.acc, bbxxyyC.accxxyy, bbxxyyD.accbbxxyy, bbxxyy
考题
有以下函数 int aaa(char *s) {char *t=S; while(*t++); t--; return(t-s); } 以下关于aaa函数的功能的叙述正确的是A.求字符串s的长度B.比较两个串的大小C.将串s复制到串tD.求字符串s所占字节数
考题
有以下程序 include void fun(char *t,char *s) { while(*t!=0) t++; while((*t++=*s
有以下程序#include <stdio.h>void fun(char *t,char *s){ while(*t!=0) t++;while((*t++=*s++)!=0);}main( ){ char ss[10]="acc",aa[10]="bbxxyy";fun(ss,aa); printf("%s,%s\n",ss,aa);}程序的运行结果是A.accxyy,bbxxyyB.acc,bbxxyyC.accxxyy,bbxxyyD.accbbxxyy,bbxxyy
考题
有以下函数: mt aaa(char*s) {char *t=s; while(*t++); t--; return(t-s); } 以下关于aaa函数的功能的叙述正确的是( )。A.求字符串s的长度B.比较两个串的大小C.将串s复制到串tD.求字符串s所占字节数
考题
有以下函数int aaa(char *s){char *t=s;while(*t++);t--;return(t-s);}以下关于aaa函数的功能的叙述正确的是( )。A.求字符串s的长度B.比较两个串的大小C.将串s复制到串tD.求字符串s所占字节数
热门标签
最新试卷