What is a Variable?

Variable

Computer memory locations where programmers can temporarily store data. The data may be entered by the user at the keyboard, or it may be read from a file, or it may be the result of a calculation made by the computer.

The memory locations are called variables because the contents of the locations can change as the application is running.

Every varialbe has a name, data type, scope, and lifetime.