Are variables used a lot? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Are variables used a lot?

Are they useful?

6th Dec 2018, 1:03 AM
Rayder
Rayder - avatar
2 Answers
+ 14
● variable is a piece of memory that can contain a data value. ● for different type of values, we use different data type(like String, int , double etc) ● there are many other classifications of variables & have so have different uses. //U can think like for running a loop restricted by certain condition & we do increment or decrement in some variable [that change in value is possible because it was variable(ie, its value can vary)]
6th Dec 2018, 3:15 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 10
Yes, variables are used a lot. They are very useful. No one can think of creating codes without them.
6th Dec 2018, 1:12 AM
Arushi Singhania
Arushi Singhania - avatar