I have this simple line of code:
int x;
x automatically has the value of 1. I don\'t set it to anything but when I debug, it s
x
No, on the contrary, x has no default value at all. What you're seeing is the garbage that the variable was placed upon when you created it.