2.3 — Variable sizes and the sizeof operator « Learn C++

2.3 — Variable sizes and the sizeof operator « Learn C++

瀏覽:541
日期:2024-05-31
3 bits can store 8 values. n bits can store 2^n values. Because a byte is 8 bits, a byte can store 2^8 (256) values. The size of the variable puts a limit on the amount of information it can store — variables that are bigger can hold larger numbers. We wi...看更多