#include<stdio.h>
int main()
{
char *a[]={"abcd","ef","gh","ijk"};
int i;
for(i=0;i<4;i++)
printf("%c",*a[i]);
return 0;
}
输出结果为aegi
若换成printf("%s",a[i]);
则输出结果为abcdefghijk
#include<stdio.h>
int main()
{
char *a[]={"abcd","ef","gh","ijk"};
int i;
for(i=0;i<4;i++)
printf("%c",*a[i]);
return 0;
}
输出结果为aegi
若换成printf("%s",a[i]);
则输出结果为abcdefghijk