/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
C++ proposal: There are exactly 8 bits in a byte
(www.open-std.org)
182 points
Twirrim
| 1 comments |
17 Oct 24 22:21 UTC
|
HN request time: 0s
|
source
Show context
throwaway889900
◴[
17 Oct 24 23:18 UTC
]
No.
41874794
[source]
▶
>>41874394 (OP)
#
But how many bytes are there in a word?
replies(4):
>>41874796
#
>>41874838
#
>>41875260
#
>>41875413
#
1.
elteto
◴[
18 Oct 24 00:59 UTC
]
No.
41875413
[source]
▶
>>41874794
#
There are 4 bytes in word:
const char word[] = {‘w’, ‘o’, ‘r’, ‘d’}; assert(sizeof word == 4);
ID:
GO
↑