#include <stdio.h> int Add(const int a, const int b) { return a + b; } void Print(char *str) { printf("%s\n", str); } int main() { int a = 10; int b = 20; int res = Add(a, b); printf("%d\n", res); //函数指针 int (*pa)(int, int) =Add; printf("%d\n", (*pa)(a, b)); void (*ps)(char *) = Print; (*ps)("hello"); }