普通函数、指针函数

定义一个普通函数

  int func_a(int,int);   //函数func_a参数为2个int类型,返回int类型

  int func_a(int,int){   }

定义一个指针函数

  int (*func_b)(int,int);  //指针函数*func_b,参数为2个int类型变量,返回int类型

  int (*func_b)(int,int){  }

http://c.biancheng.net/view/2023.html

定义一个指针

  int *p;

猜你喜欢

转载自www.cnblogs.com/ivyharding/p/11242605.html