Skip to content

Size of everything

size of pointer = 8 bytes (64 bits)
size of pointer = 4 bytes (32 bits)
size of int = 4 bytes (32 bits)
size of float = 4 bytes (32 bits)
size of double = 8 bytes (64 bits)
size of char = 1 bytes (8 bits)
size of bool = 1 bytes (8 bits)
size of long = 8 bytes (64 bits)
size of long long = 8 bytes (64 bits)
size of short = 2 bytes (16 bits)

VC++:
    size of long double = 8 bytes (64 bits)
GCC:
    size of long double = 16 bytes (128 bits)