Data Types in C++ (and VC++):

Name Bytes Description Range
char 1 Character or integer 8 bits length. signed: -128 to 127
unsigned: 0 to 255
short 2 Integer 16 bits length.
WORD = unsigned short.
signed: -32768 to 32767
unsigned: 0 to 65535
long 4 Integer 32 bits length.
DWORD = unsigned long.
signed:-2147483648 to 2147483647
unsigned: 0 to 4294967295
int * Integer. Its length traditionally depends on the length of the system's Word type, thus in MSDOS it is 16 bits long, whereas in 32 bit systems (like Windows 9x/2000/NT and systems that work under protected mode in x86 systems) it is 32 bits long (4 bytes). See short, long
float 4 Floating point number. 3.4e + / - 38 (7 digits)
double 8 Double precision floating point number. 1.7e + / - 308 (15 digits)
long double 10 Long double precision floating point number. 1.2e + / - 4932 (19 digits)
bool 1 Boolean value. It can take one of two values: true or false
NB: Not all compilers (old ones) support bool.
true or false
wchar_t 2 Wide character. It is designed as a type to store international characters of a two-byte character set. NOTE: this is a type recently added by the ANSI-C++ standard. Not all compilers support it. wide characters


Other Stuff

sizeof(variable) returns the size in bytes of a variable. See msdn for more.