What Is the role of variables in building application | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What Is the role of variables in building application

2nd Apr 2018, 8:13 AM
Ramesh Vadde
Ramesh Vadde - avatar
2 Answers
+ 6
Variables play an important role in computer programming because they enable programmers to write flexible programs. A variable's data type indicates what sort of value the variable represents, such as whether it is an integer, a floating-point number, or a character. The opposite of a variable is a constant.
2nd Apr 2018, 8:15 AM
Ekansh
+ 2
A variable is simply is the pairing of a peace of data to a name. E. G. int a=3; int tell the computer we are working with a wholr number. a is the namr that will represent the value. = set pur value rqual to the following data. That makes 3 our data. So "a" is a label that points to the value 3 in memory.
2nd Apr 2018, 10:14 AM
josh mizzi
josh mizzi - avatar