Variable Type:
Variable type is an attribute of data which specifies the size and layout of the variable's memory.
Variable Type or Data Type also specifies the range of values that can be stored within the memory and operations that can be performed on the variable.
Three types of Variable Types:
bool, int, float
Boolean
Stores value either true or false. memory 1 byte
bool b = true;
Integer
Stores value which is an integer type.
int a=1;
Float
Stores value which is a single-precision floating-point.
float b=1.3;
Get Answers For Free
Most questions answered within 1 hours.