Skip to content

Instantly share code, notes, and snippets.

@ericrrichards
Created November 13, 2012 14:41
Show Gist options
  • Select an option

  • Save ericrrichards/4066073 to your computer and use it in GitHub Desktop.

Select an option

Save ericrrichards/4066073 to your computer and use it in GitHub Desktop.
Default Parameters
void Foo( int a, int b, int c = 0, int d = 0, int e = 1){
return (a + b + c + d)/e;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment