实例 C 语言多次调用函数

x
 
#include <stdio.h>
// Create a function
void myFunction() {
  printf("I just got executed!\n");
}
int main() {
  myFunction(); // call the function
  myFunction(); // call the function
  myFunction(); // call the function
  return 0;
}
                    

输出结果

I just got executed!
I just got executed!
I just got executed!