+ 1
What Is a Variable?
I Want Answer IN Simple Way....
3 Réponses
+ 1
A variable, in any programming language, is a container used to hold a specific value of a certain data type (ie. string, int, etc.), and is stored as data somewhere within the program. This allows for certain bits of text or numbers to be stored and used later on in your code several times and having it being manipulated as many times as needed (for anything besides a constant), which makes making calculations or printing certain things much easier.
0
It is something that store information and can be changed. For example int a = 5, variable "a" stores value of 5, and this value can be changed in this way: a = 6.
0
variable is a container in which we store any value
either it int ,char, or any other data types
ex . int a,b;
a=3;
b=4;
here we can change the value of a , b
if we need so here a and b is variable