0

What effect do variable have on coding?

3rd Sep 2018, 3:08 PM
himanshu
himanshu - avatar
2 Answers
+ 1
himanshu variables are very useful in coding for example you have to write price of a book in your code 10 times you will have to write 10*times but when u use variables,though you write variables 10 times but the problem occurs when you have to change the price(all ten code lines) of your book in your code but using variables only vhange the value of variable and boooooom everything is solved
4th Sep 2018, 1:26 AM
Amir Ahmad
Amir Ahmad - avatar
0
It creates a space on memory to hold a value. Example: int a = 10; The memory referenced as a holds the value of 10 in the size of an Integer.
4th Sep 2018, 1:16 AM
Alexander Santos
Alexander Santos - avatar