Question: When you assign a value to a variable, what happens to any value that is already stored in the variable?

When you assign a value to a variable, what happens to any value that is already stored in the variable?

Step by Step Solution

3.45 Rating (148 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

When you assign a new value to a variable the old value is overwritten and lost This is because vari... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Starting Out With Programming Logic And Design Questions!