Created
July 27, 2011 01:41
-
-
Save mirrormatch/1108490 to your computer and use it in GitHub Desktop.
inline test
This file contains 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
#include <stdio.h> | |
inline int max(int a, int b) { | |
return a > b ? a : b; | |
} | |
int main(int argc, char** argv) { | |
printf("Max of 3 and 5: %d\n", max(3, 5)); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment