C++ Variables And Data Types Explained In Detail
Variables in C++ are containers for storing data values with unique names. Data types determine what type of data it holds (int, float, char, etc.). Declaration reserves memory, initialization sets its value.
Please refer this Day 2: C++ language - output before you proceed . Topics to be covered Variables or identifiers Datatype Declaration of variables General rules of variables Variables Variables or identifiers are containers for storing data values or a variable is a named storage location in memory that can hold a value. The value of a variable can be changed during the execution of a program. Datatype Data types specify the kind of data a variable can hold.The most common are integer(int) , float or double , character(char), string , boolean(bool) etc ....