Data types and sizes • There are only a few basic data types in C: - char a single byte, capable of holding one character in the local character set, usually 8 bits - int an integer, typically reflecting the natural size of integers on the host machine, e.g. 32 bits - float single-precision floating point, usually 32 bits (7 decimal digits) - double double-precision floating point, usually 64 bits (15 decimal dig.) • Qualifiers that can be applied to these basic types: - short and long apply to integers • the word int can be omitted in such declarations - signed or unsigned may be applied to char or any integer
... zobacz całą notatkę
Komentarze użytkowników (0)