+ 5
It is necessary to use variable in a program
7 ответов
+ 12
https://www.sololearn.com/discuss/1681544/?ref=app
- organize codes
- increase readability
- save memory
- easy to debug
+ 6
Program is created to process data, data is stored in variables before program can process it.
A program without variables is meaningless.
+ 6
Oviya arumugam Why are you asking this question? Based on your answers posted in a similar question, it's clear you know much about variables. It seems you would also know the answer to this question.
+ 6
The simplest programs like those that output "Hello World" to the screen don't need variables but virtually all practical programs do need them.
+ 5
Consider a simple example:
If you want to get input from user....
Then there should be a place for us to store it..
DECLARING VARIABLES MEANS YOU'RE RESERVING MEMORY FOR
STORAGE...
I don't think there's a way to store (Eg-input) elsewhere.you need a variable (ie-placeholder)
+ 4
Weird question that make me laugh. All we do with our code is to manipulate with input data to get new output data. Data is stored in variables, objects or on lower level of abstraction in registers. Even if you write simple program it will use registers implicitly. Maybe I can be wrong.
0
Its used to store data buddy