一个概念上的问题,0与NULL???
int check(char* str,char c){
int flag=0;
while ((*str)!=0)
{
if((*str)++==c)
{
flag=1;
break;
}
}
return flag;
}
请问while ((*str)!=0)和while ((*str)!=NULL)有什么区别???谢谢!!!
2010-04-19 16:06
2010-04-19 16:20
2010-04-19 22:34
2010-04-19 23:26
2010-04-19 23:28
2010-04-20 07:46