单选题:有以下函数int aaa(char*s){ char*t=S:while(*t++);t——0return(t-s):

  • 题目分类:C语言
  • 题目类型:单选题
  • 查看权限:VIP
题目内容:
有以下函数
int aaa(char*s)
{ char*t=S:
while(*t++);
t——0
return(t-s):
}
以下关于aaa函数的功能叙述正确的是(  )。 A.求字符串s的长度
B.比较两个串的大小
C.将串s复制到串t
D.求字符串S所占字节数

参考答案:
答案解析:

下列程序的输出结果是(  )。main(){ int a=6,b=3,c;if(a<b){c=a*b;printf(”%

下列程序的输出结果是(  )。main(){ int a=6,b=3,c;if(a<b){c=a*b;printf(”%d%d,%d\n”,b,a,c)

查看答案

有以下程序:#include<stdi0.h>main()(int a[]={2,4,6,8,lo),y=1,x,*P

有以下程序:#includemain()(int a[]={2,4,6,8,lo),y=1,x,*P;p=&a[1];for(x=

查看答案

下面的函数调用语句中func函数的实参个数是( )。rune((f2v1,v2),(v3,v4,v5),(v6,max(

下面的函数调用语句中func函数的实参个数是( )。rune((f2v1,v2),(v3,v4,v5),(v6,max(v7,v8)))A.3 B.4 C.5

查看答案

C语言中,下列不合法的字符串常量是( )。

C语言中,下列不合法的字符串常量是( )。A.”\121” B.'y=' C.”\n\n” D.”ABCD\x6d”

查看答案

Why isn't the word“sir”commonly used in Britain7

Why isn't the word“sir”commonly used in Britain7 A.Because it sounds too servil

查看答案