是什么(字符*)0在C是什么意思? [英] What does (char *)0 mean in c?
本文介绍了是什么(字符*)0在C是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果(与fgets(行,sizeof的(线),标准输入)==(的char *)0)...
我不明白这行做了什么,有谁知道?
解决方案
(的char *)0
不是空的性格,但在地址0指向一个字符。
一个包含值0字符是:
(字符)0
if ( fgets( line, sizeof(line), stdin ) == (char*) 0 )...
I don't understand what this line does,anyone knows?
解决方案
(char*) 0
Is not a null character, but a pointer to a character at address 0.
A character containing the value 0 would be:
(char) 0
这篇关于是什么(字符*)0在C是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文