111k views
2 votes
HELP!!!!!!!

Which of the following statements is true about changing variables?

A. You can change the variable's value to any other value
B. You can' change a variable's value. You will have to create a new variable for the new value.
C. You can only change a variable's value to another value of the same data type
D. You have to delete a variable from the program before you can assign it a new value

User Erasmo
by
8.1k points

1 Answer

1 vote
For most languages (strongly typed, and a good way to avoid really stinky problems):

C. You can only change a variable's value to another value of the same data type
User Refresh
by
8.2k points