You must utilize various variables to store diverse information while building a program in any language. Variables are just reserved memory places where values can be stored. This means that when you make a variable, you set aside some memory for it.
You could want to save data of different data types, such as character, wide character, integer, floating-point, double floating point, boolean, and so on.
There are 4 types of data types in C++ language.
|Basic Data Type||int, char, float, double, etc|
|Derived Data Type||array, pointer, etc|
|Enumeration Data Type||enum|
|User Defined Data Type||structure|