Tag: Data Types

C++ Data Types

Below is a cheat sheet for C++ data types showing the amount of bytes each one uses and there specified ranges. Data Type 16 Bits 32 Bits Range unsigned short int 2 bytes 2 bytes 0 to 65,535 short int 2 bytes 2 bytes -32,768 to 32,767 unsigned long int 4 bytes 4 bytes 0