0
What Is the role of variables in building application
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.
+ 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.