int x = 5;      

int foo(int y)
{               
  int z = 1;    
  return (x + y + z);     
}

int main(void)
{
  int a = 2;    
  x = foo(a);   
  a = foo(x);   
}