Simple data types which use in c++


int

First is int data type. In this data type we can input integer numbers only. 
For example 2, 4, 7, 44, etc.

float

Second is float data type. In this data type we can input integer numbers as well as decimal numbers.
For example 12, 44, 66.9, 79.4, etc. float data type prefored on int data type because in which we can input both decimal and integer numbers.

string

Third is string data type. In this data type we can input every thing like number, name, or special symbols etc. string data type is very important because there is a lot of use of string data type in c++.
Mostly it is used for writing name or CNIC number etc. 

avatar
AUTHOR: Muhammad Abbas
I am Software Engineer.

0 Comments