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

题目内容 (请给出正确答案)
若有定义:charstr1[6]="abcdm",*ps,*str2="abcdef";则()是正确的

A.strcpy(str1,str2)

B.表达式strcmp(str1,str2)的值大于0

C.str1=str2

D.表达式strlen(str1)的值为6


参考答案

更多 “ 若有定义:charstr1[6]="abcdm",*ps,*str2="abcdef";则()是正确的 A.strcpy(str1,str2)B.表达式strcmp(str1,str2)的值大于0C.str1=str2D.表达式strlen(str1)的值为6 ” 相关考题
考题 若有以下定义和语句: int s[4][5],( *ps)[5]; ps=s; 则对s数组元数的正确引用形式是A.ps+1B.*(ps+3)C.ps[0][2]D.*(ps+1)+3

考题 若有以下定义和语句: int s[4][5],(*ps)[5]; ps=s; 则对s数组元素的正确引用形式是( )。A.ps+1B.*(ps+3)C.ps[0][2]D.*(ps+1)+3

考题 库函数strcpy用以复制字符串,若有以下定义和语句: char str1[]="china",str2[10],*str3,*str4="china"; 则对库函数strcpy的正确的调用是_______。A.strcpy(strl,"people");B.strcpy(str2,"people");C.strcpy(str3,"people");D.strcpy(str4,"people");

考题 设char str1[11]="HELLO,",str2[10]=“world”;则执行语句cout 设char str1[11]="HELLO,",str2[10]=“world”;则执行语句 cout<<strlen(strcpy(str1,str2)));后的输出结果是 ______。A.12B.11C.7D.5

考题 若有定义int s[4][5],(*ps)[5]=s;则对s数组元素的正确引用是()。A.ps+1B.*(ps+3)C.ps[0][2]D.*(ps+1)+3

考题 库函数strcpy用以复制字符串。若有以下定义和语句: char str1[ ]="GREETING",str2[8],*str3,*str4="GREETING"; 则对库函数strcpy的不正确调用是 ()A.strcpy(str2,"HELLO2");B.strcpy(str3,"HELLO3");C.strcpy(str4,"HELLO4");D.都不正确

考题 若有语句;char str1[8],str2[8]={"hello!"}; 则能将字符串hello!赋给str1的正确语句是_____A.str1=str2B.strcpy(str1,str2)C.str1==str2D.strcpy(str2,str1)

考题 3、库函数strcpy用以复制字符串。若有以下定义和语句: char str1[ ]="GREETING",str2[8],*str3,*str4="GREETING"; 则对库函数strcpy的不正确调用是 ()A.strcpy(str2,"HELLO2");B.strcpy(str3,"HELLO3");C.strcpy(str4,"HELLO4");D.都不正确

考题 设有char str1[10],str2[10],c1;,则下列语句正确的是A.str1={"china"};str2=str1;B.c1="ab";C.str1={"china"};str2={"people"};strcpy(str1,str2);D.c1='a';