My 2 Cents What Is Variables In Program?

Swati Mishra

Content Writer
A variable is a location in memory. A variable has a name and it may contain a value. The value could be an integer value like 32, a decimal value like 8.24, or a character value like ‘G’. A variable name can have any number of characters. A variable name should be unique.

Example

These are the various correct examples of the variables
Student_name
Basic_salary
Address1
 

VIVEK KUMAR

White Belt
You are right , We can also define the program variable in this way. Variable is an entity that is vary during the program execution. Variable name given to the memory location. These location can contain anything like integer value, float value , character value and also it may null.
 
Top