Skip to content

Instantly share code, notes, and snippets.

@mirrormatch
Created July 27, 2011 01:41
Show Gist options
  • Save mirrormatch/1108490 to your computer and use it in GitHub Desktop.
Save mirrormatch/1108490 to your computer and use it in GitHub Desktop.
inline test
#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