var variable | Sololearn: Learn to code for FREE!

+1

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

+1

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

0

Please try this your self. A compiler error won't blow up your computer. https://code.sololearn.com/crZeD2hjC6e9/?ref=app

0

Thanks for your kind information