Now, think about the data to be stored with an example.
Suppose you want to take an integer as input, add 1 to it, and output the result
How will you take the input?
Via keyboard, mouse and so on.
However, once you receive the input, how will you make sure whatever it is gets added to 1?
You store it, of course!
And to store the integer, you need something that would hold the value and ‘vary’ according to what the input is, i.e. you require a variable.
Therefore, a variable is a symbol that holds some data, which can be performed upon by some additional instructions.
Serkan AKKAVAK
Computer Engineer BSc
SAP Department Manager
Contact : serkurumsal@yandex.com
0 Comments