Ray Of Hope

Function Pointers

Function Pointer/ Pointers to Function

Pointers to Function / Function Pointers. A useful technique is the ability to have pointers to functions (Specially useful in case of implemening State Machine ). Suppose you declare int func (int , int); The pointer to a function will look like int (*funcptr)(int a, int b ) //pointer to a funtion returning int. Note: […]


Posted in Basic C | No Comments »