 |
2.3 — Variable sizes and the sizeof operator « Learn C++
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
www.learncpp.com |
 |