@Lord_Krishna Indeed output is 1 2.
Because in
1) presence of local variable with the same name, function will never access the global variable.
2) Static variable declaration will takes place only once. So it can retain its value in different function calls.