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'
时间: 2024-10-23 15:20:09