阅读下列程序,写出程序运行的输出结果。
voidmain()
{char*a[6]={"AB","CD","EF","GH","IJ","KL"};/*a定义为指针数组,每个元素依次记录各个字符串的首地址*/
int1:
for(i=0;i<4;i++)prinff("%s",a[i]);
printf("\n");
}
输出结果: ABCDEFGH
阅读下列程序,写出程序运行的输出结果。
voidmain()
{char*a[6]={"AB","CD","EF","GH","IJ","KL"};/*a定义为指针数组,每个元素依次记录各个字符串的首地址*/
int1:
for(i=0;i<4;i++)prinff("%s",a[i]);
printf("\n");
}
输出结果: ABCDEFGH