问题
单项选择题
下列程序执行后的输出结果是______。 main() { char arr[2][4];strcpy(arr,"she");strcpy(arr[1],"he");arr[0][3]='&';printf("%s\n",arr); }
A.she&he
B.he
C.she
D.shehe
答案
参考答案:A
下列程序执行后的输出结果是______。 main() { char arr[2][4];strcpy(arr,"she");strcpy(arr[1],"he");arr[0][3]='&';printf("%s\n",arr); }
A.she&he
B.he
C.she
D.shehe
参考答案:A