int K = 10;
static int k= 1;
What is the output of the above code snippet?
1st time foo is called then k=1 pf(1) k=2
2nd time foo is called then k=2 pf(2) k=3