Archiviazione di tipi di baseStorage of Basic Types

Nella tabella seguente viene riepilogata l'archiviazione associata a ogni tipo di base.The following table summarizes the storage associated with each basic type.

Dimensioni dei tipi fondamentaliSizes of Fundamental Types

TipoType ArchiviazioneStorage
char, unsigned char, signed charchar, unsigned char, signed char 1 byte1 byte
short, unsigned shortshort, unsigned short 2 byte2 bytes
int, unsigned intint, unsigned int 4 byte4 bytes
long, unsigned longlong, unsigned long 4 byte4 bytes
floatfloat 4 byte4 bytes
doubledouble 8 byte8 bytes
long double 8 byte8 bytes

I tipi di dati C possono essere suddivisi in categorie generali.The C data types fall into general categories. I "tipi integrali" sono char, int, short, long, signed, unsigned e enum.The "integral types" include char, int, short, long, signed, unsigned, and enum. I "tipi a virgola mobile" sono float, double e long double.The "floating types" include float, double, and long double. I "tipi aritmetici" sono tutti i tipi a virgola mobile e integrali.The "arithmetic types" include all floating and integral types.

Vedere ancheSee Also

Dichiarazioni e tipiDeclarations and Types