C++Variables and Data Types
When programming with programming language, various variables are needed to store various information. A variable holds the memory location of the value it stores. This means that when a variable is created, some space will be reserved in memory. It may be necessary to store information of various data types (such as character type, wide character type, integer type, floating point type, double floating point type, Boolean type, etc.). The operating system will allocate memory and decide what to store in the reserved memory according to the data type of variables.