I've always assumed:
- that a
char
is represented by a byte,
- that a byte can always be counted upon to have 8 bits,
- that
sizeof (char)
is always 1
,
- and that the maximum theoretical amount of memory I can allocate (counted in
char
s) is the number of bytes of RAM (+ swap space).
But now that I've read the Wikipedia entry on the byte I'm not so sure anymore.
Which one(s) of my assumptions is wrong? Which one(s) is dangerous?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…