Chapter 1: Problem 12
What happens to a variable's current contents when a new value is stored there?
Short Answer
Expert verified
Answer: When a new value is assigned to a variable in programming, its current contents are replaced by the new value. The old value is removed from the memory location assigned to the variable, and the new value takes its place. This process is sometimes referred to as "overwriting" the contents of the variable.