Function Pointer
Posted Date Unknown jmk jmk 1 Comment

What is a Function Pointer and what is it's use ??

See All Responses Below...
Message Rating
Posted on: 25/05/2012
A function pointer is a variable that stores the address of a function that can later be called through that function pointer. 

It can be declared with the following syntax,

Return_type  (* Function_name)(Argument list);

Example: int (*add)(int, int);

One of the most important advantage of function pointer is that, it can be used as arguments in another functions.
Please Login to Post Your Comments
Name (Max. 100 characters)
Please post your comments here
Select Language
Attach File(Max. Size: 2 MB)
A few simple rules when posting your Comments,
  1. Please post only answers relevant to the topic of discussion.
  2. Please dont misuse this site or do not be abusive, offensive, inappropriate,harass anyone on the boards or post ads or spam. Doing so will delete your inappropriate messages and will block or delete your account on this site. 

Academic Projects