Page 1 :
C Data type Modifiers, Data type Modifiers:, Data type modifiers are used to modify the properties of basic data types (except float and void, data types) according to application requirements; so that we can be able to precisely utilize the, computer memory., With the help of data type modifiers we can, Modify the size (i.e. the amount of memory to be allocated), Modify the sign (i.e. decide only +ve or both +ve and –ve values can be stored), There are 4 data type modifiers:, short, long, signed( is the default modifier for any data type), unsigned, Note: if you modify the size or sign of primitive data types then the possible range of values can be, stored also change., Eg., 1B= 8bits=256 (-128 to 127) or(0 to 255), , 2B= 16 bits=65536 (-32768 to 32767) or (0 to 65535), To modify properties of primitive data types we precede them by data type modifiers, Ex: Data type modifiers with primitive data types:, Data type, char or signed char, unsigned char, int or signed int, , Size in bytes, 1, 2 or 4, , unsigned int, short int or signed short, int, , 2 or 4, 1 or 2, , unsigned short int, , 1, Or, 2, 4, Or, , long int or signed long int, , Range, -128 to 127, 0 to 255, (-32,768 to 32,767), Or, (-2,147,483,648 to 2,147,483,647), (0 to 65535) or (0 to 4294967295), (-128 to 127), Or, (-32768 to 32,767), (0 to 255), Or, (0 to 65535), (-2,147,483,648 to 2,147,483,647), Or
Page 2 :
C Data type Modifiers, 8, Unsigned long int, , Float(6), Double(15), Long double (18), , 4, Or, 8, 4, 8, 12, , (-9223372036854775808 to, 9223372036854775807), (0 to 4294967295), Or, (0 to 18446744073709551616), 1.2E-38 to 3.4E+38, 2.3E-308 to 1.7E+308, 1.5E-312 to 1.5E+312