题目内容

字符串常量的结束符是( )

A. '\n'
B. '\0'
C. EOF
D. 不确定

查看答案
更多问题

sizeof("123456")和strlen("123456")的结果分别是( )

A. 6 6
B. 6 7
C. 7 6
D. 7 7

以下字符数组初始化语句中,正确的是( )

A. char s[]="Hello World";
B. char s[11]="Hello World";
C. char s[3][]={"Hello World","ACM","Just do it"};
D. char s[2][12]={"Hello World","ACM","Just do it"};

strcmp("abc","aBcd")的结果是( )

A. 1
B. 32
C. -1
D. 0

有char s[11]="Test";则以下语句错误的是( )

A. strcpy(s,"abc1234567");
B. strcat(s,"123456")
C. printf("%s\n",s);
D. gets(s);
E. s="abc1234567";

答案查题题库