Variable | Constant |
A variable is a space in the memory to store values or constants. | A constant is a numeric value or a string value that is assigned to a variable. |
The value of a variable may change during program execution. | The constant does not change its value. |