发现个全局变量与局部变量的区别:
[code=C/C++]
char** t;
main()
{
char c[1];
char** t1;
sprintf(c,"%d",t);
printf("t=%s---/n",c);
if(strcmp(c,"0")!=0)
{
printf("t is Not Null/n");
}
sprintf(c,"%d",t1);
printf("t1=%s---/n",c);
if(strcmp(c,"0")!=0)
{
printf("t1 is Not Null/n");
}
}
[/code]
转载于:https://www.cnblogs.com/Iamlein/archive/2010/04/11/2375922.html