码迷,mamicode.com
首页 > 其他好文 > 详细

C Language Study - 0 & '0' & '\0'

时间:2015-02-18 11:52:47      阅读:104      评论:0      收藏:0      [点我收藏+]

标签:

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).

C Language Study - 0 & '0' & '\0'

标签:

原文地址:http://blog.csdn.net/oimchuan/article/details/43876213

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!