2 次代码提交

共有 1 个文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      hello.c

+ 1
- 0
hello.c 查看文件

@@ -11,5 +11,6 @@ int main() {
MathFunc f = add; // 将加法函数赋值给函数指针
int result = f(3, 5); // 通过函数指针调用加法函数
printf("3 + 5 = %d\n", result); // 输出:3 + 5 = 8
result = f(2,8);
return 0;
}

正在加载...
取消
保存