#include<stdio.h>
int main(int argc,char *argv[])
{
char *available_resource[]={"coulor monitor","big disk","cray","on-line drawing routhing","mouse","keyboard","power cable"};
char **p=available_resource;
while(**p!='\0')
{
printf("%s\n",*p);
p++;
}
return 0;
}
为什么初始化数组的时候去掉"\0"就出问题呢?不是默认"\0"结尾吗?