开发者

Binary Zero, NULL Byte and ASCII [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current for开发者_运维技巧m. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

I am very confused. Is there any relationship between the following:

  1. Binary Zero.
  2. Null Byte.
  3. 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜