Data Types In C++

datatypes in c++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

char

2. int data types range and  size

intger

 

3. float data types & their range and  size

float

4. double data types & their range and  size

double

Related Post or you may interest:

  1. Introduction & Fundamental of C++
  2. Code Blocks Compiler Download
  3. Variable In C++
  4. Token in c++
  5. C++ Operators,Operands and expression
  6. If, Else If..Else & Switch Statement
  7. For loop while loop&Do while loop in C++
  8. Continue and Break Statement In C++

Leave a Reply