实例 C 语言创建并调用函数

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

输出结果

I just got executed!