Retain Variable in Ram through Reset

Do you know what is needed to have the variable not be initialized?

That is more of a C programming question. However at a guess I would say use a pointer into ram. However how are you going to initialise it the first time.
Why is the processor being reset anyway? You should not be writing code so that it requires to be reset.