Binary Zero, NULL Byte and ASCII [closed]
I am very confused. Is there any relationship between the following:
- Binary Zero.
- Null Byte.
- ASCII Character 0 (Decimal value is 48).
Your explanation is highly appreciated.
Technically, I suppose the first refers to a single bit. Eight bits make a byte, and eight binary zeros would thus comprise a "null byte", the byte with numeric value 0
which is used to terminate C strings. The ASCII value used to represent the text character 0
is, as you say, 48, and there is nothing special about that value -- it's just the more or less random number that was assigned to this duty.
精彩评论