设chars[10];,函数strcpy(s,“abcd”)执行后s中的内容是_______。 A.aB.sC.abcD.abcd

设chars[10];,函数strcpy(s,“abcd”)执行后s中的内容是_______。

A.a

B.s

C.abc

D.abcd


相关考题:

以下程序段中,不能正确赋字符串(编译时系统会提示错误)的是______。A.char s[10]="abcdefg";B.char t[]="abcdefg", * s=t;C.char s[10]; s="abcdefg";D.char s[10]; strcpy(s, "abcdefg");

以下程序段中,不能正确赋字符串(编译时系统会提示错误)的是A.char s[10]="abcdefg";B.char t[]="abcdefg",*s=t;C.char s[10]; s="abcdefg";D.char s[10];strcpy(s,"abcdefg");

以下程序段中,不能正确赋字符串(编译时系统会提示错误)的是( )。A.char s[10]="abcdefg";B.char t[]="abcdefg",*s=t;C.char s[10];s="abcdefg";D.char s[10];strcpy(s,"abcdefg");

假设有定义 char s1[20]="1234567" ,s2[20]={"ABCD"};,则执行strcpy(s1,s2)后,s1的内容为“ABCD”

以下程序段中的词句被执行后,数组s1的内容是(). char s1[10]=”ABCD”,s2[20]=”EFGH”; strcpy(s1+2,s2);A.ABEFGHB.EFABCDC.ABCDD.CDEFGH

3、设char s1[10], *s2= “ab\0cded”, 执行strcpy(s1, s2)后,cout<<s1;的运行结果是 。

数组定义: char s1[10], s2[10]=“ABCD”; 则能将字符串”ABCD”赋给s1的正确语句是 。A.s1=“ABCD”B.strcpy(s1,s2)C.s1=s2D.strcat(s1,s2)

设char s1[10], *s2= “ab0cded”, 执行strcpy(s1, s2)后,cout<<s1;的运行结果是 。

以下程序段中,会出现编译错误的选项是()。A.char s[10]; s="abcdefg";B.char s[10]="abcdefg";C.char t[]="abcdefg";D.char s[10]; strcpy(s,"abcdefg");