Data Type In C


Which type of value we want to store in a variable, it can be decide by data type such as integer,character,float etc.



Data types

  • Primitive Data type as Basic Data type in C :
integer(int) charater(char) floating(float) void

  • Derived Data types :
Structure types Pointer types Array types Union types Function types

  • User define Data type in c :
Structure Union Enumeration

  • Integer Types :
Data Type Maximum Minimum Bytes
Short 32767 -32768 2
Int 32767 -32768 2
long 2147483647 -2147483648 4
unsigned int 65535 0 2
char 127 -128 1
unsigned char 255 0 1
Float 3.4E+38 3.4E-38 4
double 1.7E+308 1.7E-308 8