being initialized

I'm continually seeing "being used without being initialized". I still don't understand something, obviously. I did put a number as double, and I did use it, so what else could make it not initialized?
1
2
int x; //x not initialized...what is its value? garbage
int y = x; //used without initializing, x and y are both garbage now 


1
2
int x = 0; //this is initializing x to 0
int y = x; //no warning now 
Thanks so much!
Topic archived. No new replies allowed.