Skip to main content
1 of 2
ugoren
  • 17.5k
  • 5
  • 52
  • 74

Define parameters instead of variables.

f(x){int y=x+1;...}

f(x,y){y=x+1;...}

You don't need to actually pass the second parameter.

ugoren
  • 17.5k
  • 5
  • 52
  • 74