0
Default value of variable
Declared an int variable with no value and another with value '2'.. why does I get 10 as output..explain me
1 Resposta
+ 2
If you just declare them, they are not necessarily empty: At that place in memory there might be still sitting something.
That's why you should initialize - to be sure what you get.