Skip to content

Instantly share code, notes, and snippets.

@gjlmotea
Created July 12, 2020 08:23
Show Gist options
  • Save gjlmotea/277318eed3bc1fe2675df7a883e600c1 to your computer and use it in GitHub Desktop.
Save gjlmotea/277318eed3bc1fe2675df7a883e600c1 to your computer and use it in GitHub Desktop.
C function使用
#include <stdio.h>
#include <stdlib.h>
void hello(int a){
for(; a>0; a--){
printf("hello ");
}
printf("\n");
}
int main(int argc, char *argv[]) {
int i = 0;
for(i=0; i<10; i++){
hello(i);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment