单选题
有以下程序:
#include <stdio.h>
#include <string.h>
main()
char x[]="STRING";
x[0]=0;x[1]='/0';x[2]='0';
printf("%d %d/n", sizeof(x), strlen(x));
程序运行后输出的结果是( )。
A.6 1 B.7 0
C.6 3 D.7 1
A
B
C
D
【正确答案】
B
【答案解析】
提交答案
关闭