General

Compiling

Basic compiling example

gcc file.c -o file.out

Data types

char             1 byte          | [-128; 127] or [0; 255]
unsigned char    1 byte          | [0; 255]
signed char      1 byte          | [-128; 127]
int              2 or 4 bytes    | [-32768; 32767] or [-2147483648; 2147483647]
unsigned int     2 or 4 bytes    | [0; 65535] or [0; 4294967295]
short            2 bytes         | [-32,768; 32767]
unsigned short   2 bytes         | [0; 65535]
long             4 bytes         | 
long             8 bytes         | [-9223372036854775808; 9223372036854775807]

Last updated