Data Types which are important components in C++ programming. A variable that can only hold a data but data type defines what kinds of data a variable hold. . without data type a variable have no value in c++ program.
Dear reader, here I will discuss details about c++ programming variable that will be helpful for your learning c++ programming.
Data Type In C++:
In C++, data type is used to declare various types of data such as integer
number data type, float number, double number, character ,string data type, boolean data type etc.There are many data types in C++.
The basic types are :
1. char( Character Like: a,b,X,Y)
2. int (Integer Like: 8,29,620)
3. float (Floating point number Like: 2.712356)
4. double (Floating point number with high range Like:2.712356478952124)
All the available data types, their size and range are given below:
1. char data types & their range and size
2. int data types range and size
3. float data types & their range and size
4. double data types & their range and size