Setting a variable equal to a value in the type declaration statement implicitly gives the variable the SAVE attribute. In this regard, the behavior of local variables is different from the behavior of corresponding variables in languages such as C.
You may benefit from reading this informative page .