bool检测;
sizeof(test) = 1
if using VS 2010. Since every C++ data type must be addressable,
the "test" bool variable is 8-bits(1 byte).
我的问题是,“测试”在记忆中实际上占了1个。
Is there any implementation skill that can make the bool data type occupy only one bit? If yes, can you give me an example?
bool test1[32]
(in VS 2010),
int test2
(in VS 2010)
http://www.ohchr.org。 占领同样的记忆?