-->
当前位置:首页 > 题库

单选题:以下程序运行后的输出结果是

Luz5年前 (2021-05-10)题库915
以下程序运行后的输出结果是

#include

#include

struct S

{

char name[10];

};

main()

{
struct S s1, s2;

strcpy(s1.name, "12345");

strcpy(s2.name, "ABC");

s1 = s2;

printf("%s\n", s1.name);

}
@[B](2)

A. 12345
B. ABC
C. ABC45
D. 12ABC



A.12345
B.ABC
C.ABC45
D.12ABC


答案:B