Explain fundamental data types in c ++ in brief.
Answers
Answer:
Fundamental data types are the data types which are predefined in the language and can be directly used to declare a variable in C++. The various fundamental data types are: char (Character) int (Integer) float (Floating point)
Explanation:
The data types in c++:
- char (Character)
- int (Integer)
- float (Floating point)
- bool (Boolean)
- double (Double floating point)
- void (Valueless)
Character:
It is the datatype that is used to store characters. FOR EXAMPLE: a,b,c,d,e etc.
Integer:
It is the datatype that is used to store integers. FOR EXAMPLE: 1,2,3,4,5,6
Floating point:
It is the datatype that is used store to floating values or decimal values FOR EXAMPLE: 0.2,4.5,6.7,4
Boolean:
It is the datatype that is used to check whether the given statement is TRUE or FALSE.
Double floating point:
It is the datatype that is used store floating values with higher precision.
Valueless:
It is the datatype that is used to represent a variable without any value.
HOPE IT HELPS !