Table of Contents Previous topic Next topic
C COMPILER->C Language Definition->Data Sizes
The data sizes for the C compiler are given in the following table. Signed is the default type but may be explicitly declared for all data sizes using the signed keyword.
(1 byte is 8 bits)
Type | Storage Size |
char | 1 byte |
short int | 2 bytes |
long int | 4 bytes |
int | 4 bytes |
unsigned char | 1 byte |
unsigned short int | 2 bytes |
unsigned long int | 4 bytes |
unsigned int | 4 bytes |
float | 4 bytes |
double | 8 bytes |
long double | 8 bytes |