I am not sure if I understand your message.
int x;
outside of a function should be the same as
int x=0;
outside of a function. It might be that they are stored in different sections but this depends on the compiler and the compiler parameters.
Or was x a local variable of a function in your sketch?