当前位置: 代码迷 >> 综合 >> 函数的指针
  详细解决方案

函数的指针

热度:71   发布时间:2024-01-26 08:25:15.0
#include <stdio.h>int funcA(int a, int b)
{int c = a + b;printf("a= %d,b=%d\n", a, b);return c;
}int(*p_funcA)(int, int);int main()
{funcA(3, 9);p_funcA = funcA;p_funcA(3, 9);system("pause");return 0;}

int(*p_funcA)(int, int);

依据函数返回值类型和参数类型及个数

  相关解决方案