问题 单项选择题

下面程序段的输出结果是( )。
#include<string.h>
void main()

char str1[10]='s','t','u','d','e','n','t';
printf("%d\n",strlen (str1));

A.7
B.8
C.10
D.存在语法错误

答案

参考答案:A

单项选择题
填空题