Skip to content

Instantly share code, notes, and snippets.

@phildarnowsky
Created June 29, 2015 16:57
Show Gist options
  • Save phildarnowsky/67348c553cfc8cd4f60e to your computer and use it in GitHub Desktop.
Save phildarnowsky/67348c553cfc8cd4f60e to your computer and use it in GitHub Desktop.
Function that returns the greater of two integers
int max(int a, int b) {
return (a < b) ? b : a;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment