单项选择题

有以下函数:
int aaa(char *s)
char *t=s;
while(*t++);
t--;
return(t-s);

以下关于aaa函数的功能的叙述正确的是( )。

A) 求字符串s的长度
B) 比较两个串的大小
C) 将串s复制到串t
D) 求字符串s所占字节数
<上一题 目录 下一题>
热门 试题

单项选择题
以下程序执行后x的值是( )。 #include<stdio.h> main() int x, y=252, i=386, *m=&y, *z=&i; x=(z==m); printf( %d , x);
A) 252
B) 1
C) 0
D) 运行时出错,x无定值
单项选择题
有以下程序: #include<stdio.h> int f1(int x, int y) return x>yx:y; int f2(int x, int y) return x>yy:x; main() int a=4, b=3, c=5, d=2, e, f, g; e=f2(f1(a, b), f1(c, d) ); f=f1(f2(a, b), f2(c, d) ); g=a+b+c+d-e-f; printf( %d, %d, %d n , e, f, g); 程序运行后的输出结果是( )。
A) 4, 3, 7
B) 3, 4, 7
C) 5, 2, 7
D) 2, 5, 7
相关试题
  • 若fp是指向某文件的指针,且已读到文件末尾...
  • 在位运算中,操作数每右移一位,其结果相当...
  • 有以下程序: struct s int x, y; ...
  • 有以下程序段: struct st int x; in...
  • 若有以下的说明,对初值中整数2的正确引用...