var variable | Sololearn: Learn to code for FREE!


var variable

What will happen if i not initializa at the time of declaration of var?

10/19/2019 5:07:20 AM

Bilal Ahmed

3 Answers

New Answer


The variable will point to null until it is initialized. Then it will point to the location of the object it was assigned to.


Please try this your self. A compiler error won't blow up your computer.


Thanks for your kind information