Differentiate between constant and variable.

A constant is a value that remains unchanged throughout the execution of a program. Once assigned, its value cannot be modified, providing stability to the program. Constants are defined using keywords like const in C.

A variable, on the other hand, is a storage location in memory that can hold data, which can be modified during program execution. Variables are used to store and manipulate values that may change over time, such as user inputs or results of computations.