int x; != int x=0;

You should initialize variables used in loops. Not including the initializer is not an "optimization," it's a programming logical error.