C The sizeof Operator

Get the Memory Size

We introduced in the data types article that the memory size of a variable varies depending on the type:

Data Type Size
int 2 or 4 bytes
float 4 bytes
double 8 bytes
char 1 byte

The memory size refers to how much space a type occupies in the computer’s memory. Continue reading C The sizeof Operator