Note
Kailangan ng pahintulot para ma-access ang page na ito. Maaari mong subukang mag-sign in o magpalit ng mga direktoryo.
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang baguhin ang mga direktoryo.
The following table summarizes the storage associated with each basic type.
Sizes of fundamental types
| Type | Storage |
|---|---|
char, unsigned char, signed char |
1 byte |
short, unsigned short |
2 bytes |
int, unsigned int |
4 bytes |
long, unsigned long |
4 bytes |
long long, unsigned long long |
8 bytes |
float |
4 bytes |
double |
8 bytes |
long double |
8 bytes |
The C data types fall into general categories. The integral types include int, char, short, long, and long long. These types can be qualified with signed or unsigned, and unsigned by itself can be used as shorthand for unsigned int. Enumeration types (enum) are also treated as integral types for most purposes. The floating types include float, double, and long double. The arithmetic types include all floating and integral types.