+ 1

var variable

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

19th Oct 2019, 5:07 AM
Bilal Ahmed
Bilal Ahmed - avatar
3 Réponses
+ 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.
19th Oct 2019, 5:10 AM
Brian R
Brian R - avatar
0
Please try this your self. A compiler error won't blow up your computer. https://code.sololearn.com/crZeD2hjC6e9/?ref=app
19th Oct 2019, 11:43 AM
sneeze
sneeze - avatar
0
Thanks for your kind information
19th Oct 2019, 6:28 PM
Bilal Ahmed
Bilal Ahmed - avatar