Previous

C++ Data Type

Next

Basic Data Type

The data type  specifies the size of and type of information the variable will store;

Data  Type  Size Description
boolean 1 byte

Store true or false values

char 1 byte

Stores a single character/latter/number.or ASCII value.

int  4 byte

Store a whole numbers,without decimals

float 4 byte

The float data type is used to represent real or floating point values and store decimal value 

double 8 byte Store a factional number ,containing one or more decimals. storing 15 decimal digits

 

It is a keyword and used to specify the type of data