In c we are using pointers on daily basis. Pointers are used for dynamic memory allocation. Pointer can contain address of a variable. Pointer's name tells it points to something. So C provides us pointers to hold a variable's address so same like this it provides us function pointers. Function pointer hold address of a function. It points to a function.
Declaration of function pointer ,definition of function pointer example:
Comments
Post a Comment