Skip to content

Instantly share code, notes, and snippets.

@gjlmotea
Created July 12, 2020 08:15
Show Gist options
  • Save gjlmotea/7e3d2769cb0aeb316b2d6a4c22389eac to your computer and use it in GitHub Desktop.
Save gjlmotea/7e3d2769cb0aeb316b2d6a4c22389eac to your computer and use it in GitHub Desktop.
C inline使用
#include <stdio.h>
#include <stdlib.h>
inline int hi(){
return "Hi~";
}
int main(int argc, char *argv[]) {
int i = 0;
for(i=0; i<1000; i++){
printf("%s\n",hi());
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment