Boolean Size?
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
Why the variable
bool
is implemented as 8 bits ? 1 or 0 can we say it with 1 bit? or the minimum size the system can allocate comes in "Bytes" ? :~Astricks wrote:
the minimum size the system can allocate comes in "Bytes"
Yes, the smallest unit that the computer can store in memory is a BYTE. Although you can work with bits if you use the bitwise operators.
You may be right
I may be crazy
-- Billy Joel --Within you lies the power for good, use it!!!