Datatypes - It is use to define type of data. A variable can only be used in program if it is not declared with a datatype. Datatypes are helpful in determining how much space will it take in memory. Datatypes are mainly of 4 types.
Int - It is use to store integer values. It take 4 bytes of memory space on 32 bit system.
Char- It is used to store character values. It takes 1 byte of memory.
float-It is use to store single precision floating point number. It takes 4 bytes of memory.
double-It is use to store double precision floating point number. It takes 8 bytes of memory.