单项选择题
有以下函数
int aaa(char *s)
char *t=s;
while(*t++);
t--;
return(t-s);
以下关于aaa函数的功能的叙述正确的是
A)求字符串s的长度
B)比较两个串的大小
C)将串s复制到串t
D)求字符串s所占字节数
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
下列选项中错误的说明语句是
A.char a[ ]='t','o','y','o','u','\0';
B.char a[ ]="toyou\0";
C.char a[ ]="toyou\0";
D.char a[ ]='toyou\0';
点击查看答案&解析
单项选择题
现有定义int a;double b;float c;char k;,则表达式a b+c-k值的类型为
A.int
B.double
C.float
D.char
点击查看答案&解析
相关试题
有以下程序 #include <stdio.h> voi...
若有定义:float x=1.5;int a=1,...
有下面程序段 #include stdio.h #inc...
有以下程序 #include <stdio.h> int...
下面程序的文件名为t.exe,在DOS下输入的...