首页题库练习题目详情
C语言程序设计单选题中等

下列哪项可以正确地将字符串赋值给字符数组?

Achar s[10]; s = "hello";
Bchar s[10]; strcpy(s, "hello");
Cchar s[]; s = "hello";
Dchar *s; s = "hello";