Declare the function automatic. value for each function will go to stack and hence you will see new copy of variable