输出数组中的各字符串,求检查。。
#include<stdio.h>void main()
{
char *a[]={"12232","dsss","dsdsdsd","4344545"}
char *p;
int j=0;
p=a;
while(j<4)
{
j++;
p++;
}
printf("%s",a[j]);
}
#include<stdio.h> void main() { char *a[]={"12232","dsss","dsdsdsd","4344545"};//这里漏了一个分号,哥们你太不仔细了 char *p; int j=0; p=a; while(j<4) { j++; p++; } printf("%s",a[j]); }