0

What can i do about a variable that being used without being initialized? Please help

cant do sh*t 😢

30th Sep 2018, 5:32 PM
Dominic Eusebio
Dominic Eusebio - avatar
3 Respuestas
0
What do you mean, I don't understand the question, if you get a message saying a certain variable isn't initialized then you can initialize it right? simply assign a value for it? or am I misunderstanding your question?
30th Sep 2018, 6:02 PM
Ipang
0
implicit behaviour of a language will initialise the variable to zero.in languages that does not support implicit behaviour you will have to declare the variable explicitly ie initialise it with some value
30th Sep 2018, 6:14 PM
Asgar Aziz
Asgar Aziz - avatar
0
It is a good practice to initialize variables at declaration or construction place.
30th Sep 2018, 6:15 PM
Sergey Ushakov
Sergey Ushakov - avatar