Created
June 29, 2015 16:57
-
-
Save phildarnowsky/67348c553cfc8cd4f60e to your computer and use it in GitHub Desktop.
Function that returns the greater of two integers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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