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
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!