Mega Code Archive

 
Categories / C Tutorial / Data Type
 

C Numeric Data Types

Keyword           Variable Type               Range char              Character (or string)       -128 to 127 int               Integer                     -32,768 to 32,767 short             Short integer               -32,768 to 32,767 short int         Short integer               -32,768 to 32,767 long              Long integer                -2,147,483,648 to 2,147,483,647 unsigned char     Unsigned character          0 to 255 unsigned int      Unsigned integer            0 to 65,535 unsigned short    Unsigned short integer      0 to 65,535 unsigned long     Unsigned long integer       0 to 4,294,967,295 float             Single-precision            +/-3.4E10^38 to +/-3.4E10^38                   floating-point                   (accurate to 7 digits)      double            Double-precision            +/-1.7E10^308 to +/-1.7E10^308                    floating-point                   (accurate to 15 digits) C has really only four types of variables: char int float double