Data Type In C++



Which type value we want store in variable it depends by data type in programming languages such as integer,character,float etc.



Data types

  • Primitive Data Type As Basic Data Type In C++

char char float double
  • Derived Data type

Array string structure

  • User Define Data Type In c++

Structure Union Enumeration
Data Type Maximum Minimum Bytes
Int 32767 -32768 2
unsigned int 65535 0 2
Short 32767 -32768 2
long 2147483647 -2147483648 4
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