суббота, 19 июня 2010 г.

Useful link about bitwise operators (for education purposes only)

суббота, 5 июня 2010 г.

Function pointers

Assume there are some functions

int func(int a, double b);
int fonc(int a, double b);

To create a pointer to these functions:

int(*p)(int, double);

p = func;

(*p)(1, 1.22);

/* or */


p = fonc;


p(2, 3.44) ;


Note: All functions that are used with the same function pointer must have the same parameters and return type.