Ordinary function, the function pointer

Define a common function

  int func_a (int, int); // function func_A two parameters of type int and returns an int

  int func_a(int,int){   }

 

Define a pointer to the function

  int (* func_b) (int, int); // pointer to function * func_b, two parameters are variables of type int and returns an int

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

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

 

Definition of a pointer

  int * p;

Guess you like

Origin www.cnblogs.com/ivyharding/p/11242605.html