C Language Study - 0 & '0' & '\0'
时间:2015-02-18 11:52:47
收藏:0
阅读:104
The difference of 0 & ‘0‘ & ‘\0‘
------------------------------------------------------------
0 is a number(decimal).
------------------------------------------------------------
‘0‘ is a char. It‘s ASCII equal 48(decimal).
------------------------------------------------------------
‘\0‘ means the end of a string. It‘s ASCII equal 0(decimal).
评论(0)