if the reference of any variable is deleted, and then if the no. is multiplied to another no. Will it give an error? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

if the reference of any variable is deleted, and then if the no. is multiplied to another no. Will it give an error?

22nd Oct 2016, 7:38 AM
Himanee
Himanee - avatar
4 Answers
+ 2
It's difficult to determine which question this is about so...Referencing any variable after its deletion is an error. If a number was in the variable, that number is gone (there is no way to reference it).
22nd Oct 2016, 11:46 AM
Kirk Schafer
Kirk Schafer - avatar
+ 1
You'll get the error that a variable is not assigned. if the variable is no longer assigned to a value, it's doesn't exist.
22nd Oct 2016, 7:04 PM
Alex Schrichte
Alex Schrichte - avatar
0
this question is about VARIABLES... My ques is if i assign any value to a variable... and then delete that var n operate that var with another var... Will it give any error or not?
22nd Oct 2016, 12:39 PM
Himanee
Himanee - avatar
0
thanks @Alex
22nd Oct 2016, 7:17 PM
Himanee
Himanee - avatar