An entity that may vary during program execution is called a variable.
Variable names are names given to locations in memory. These locations can contain integer, real or character constants.
For example:
an integer variable can hold only an integer constant,
a real variable can hold only a real constant and
a character variable can hold only a character constant.
Variable names are names given to locations in memory. These locations can contain integer, real or character constants.
For example:
an integer variable can hold only an integer constant,
a real variable can hold only a real constant and
a character variable can hold only a character constant.