Chaning map(game mode), are the values saved?

When I change a map from one map to another, which also has a separate game mode. Are the varaibles saved from the previous game? Or Do I need to do something manually to save the variables, pointers etc so I can access them later.