Just curious | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Just curious

Is it possible to use the same variable for a different memory?

2nd Jan 2017, 2:37 AM
Jerome Lester V. (thunderlocus3)
Jerome Lester V. (thunderlocus3) - avatar
4 Answers
+ 1
simple answer no! complex answer yes if it is a variable that has been destroyed in which case you can reassign the variable with the new command
2nd Jan 2017, 3:09 AM
Jason Hoffman
Jason Hoffman - avatar
0
Can I overload the memory though? Like reassign a new value for it?
2nd Jan 2017, 3:50 AM
Jerome Lester V. (thunderlocus3)
Jerome Lester V. (thunderlocus3) - avatar
0
once you assign the variable a new value, the old value is gone. you can, however, use the value for an action, reassign the value, then perform another action with the new value
2nd Jan 2017, 4:46 AM
Thomas West
Thomas West - avatar
0
Thanks.
2nd Jan 2017, 5:04 AM
Jerome Lester V. (thunderlocus3)
Jerome Lester V. (thunderlocus3) - avatar