Posts

Showing posts with the label Data Types

C Language – Variable Data Types

Image
1. C Data Types signed unsigned short long char int float double auto register static extern const volatile 1.1. Integer Sign Modifiers These are generally used in combination with integer types such as char or int .  They can also be used alone, in which case they are interpreted as having an implied int . signed unsigned signed and unsigned are keywords that determine whether an integer type can represent negative values. signed uses a sign bit to represent both negative and positive values. unsigned does not represent negative values and only represents values greater than or equal to 0. Even with the same 1 byte (8 bits), the range of values differs depending on whether it is signed or unsigned . 1.2. Integer Size Modifiers These are generally used in combination with the integer type int .  They can also be used alone, in which case they are interpreted as having an implied int . short long short short is a modifier used to reduce th...