while(*str)的意思

*str是指针字符串的指针,
while(str)意思是说当指针还没到STR的末尾时,做while循环
当到达STR末尾后,就跳出while循环,
这里的
str并不是真假问题。

猜你喜欢

转载自blog.csdn.net/HanLongXia/article/details/109091060
str
今日推荐