+ 1

What Is a Variable?

I Want Answer IN Simple Way....

4th Apr 2018, 4:38 AM
Amar Varma
Amar Varma - avatar
3 ответов
+ 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.
4th Apr 2018, 4:42 AM
Faisal
Faisal - avatar
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.
4th Apr 2018, 4:43 AM
Vladi Petrov
Vladi Petrov - avatar
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
5th Apr 2018, 4:36 AM
amir sohel