Created
July 12, 2020 08:15
-
-
Save gjlmotea/7e3d2769cb0aeb316b2d6a4c22389eac to your computer and use it in GitHub Desktop.
C inline使用
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
#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