Calling single function multiple times with different arguments

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