A variable provides us with named storage that our programs can manage. Each variable in C++ has a particular type, which defines the size and design of the variable’s memory.
The variable used for a different condition in C++ are
1) Bool
Variable to store boolean values either true or false.
2) Char
Variable to store character types (one byte)
3) int
Variable with integral values
4) float
Types of variables with large and floating point (single-precision floating point value)
5) double
Types of variables with large and floating point (double-precision floating point value)
6) void
It Represents the absence of type.
Regards,
Nitesh Bavishiya