Why does a variable hold only one value at a time?
Answers
Answered by
0
A variable let say X should have only one value so that when you write
X=2
Y = X +3
The computer know that we have to put 2 in the place of X
Y = 2+3=5
But if it had 2 value how will the computer know which value to use when it does the step
Y=X+3
X=2
Y = X +3
The computer know that we have to put 2 in the place of X
Y = 2+3=5
But if it had 2 value how will the computer know which value to use when it does the step
Y=X+3
Similar questions