W3School TIY Editor

  • W3School 在线教程
  • 改变方向
  • 暗黑模式
​x
 
#include <stdio.h>
​
// 声明两个函数:myFunction 和 myOtherFunction
void myFunction();
void myOtherFunction();
​
int main() {
  myFunction(); // 从 main 调用 myFunction
  return 0;
}
​
// 定义 myFunction
void myFunction() {
  printf("myFunction 中的文本\n");
  myOtherFunction(); // 在 myFunction 中调用 myOtherFunction
}
​
// 定义 myOtherFunction
void myOtherFunction() {
  printf("嘿!myOtherFunction 中的文本\n");
}