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)

Select Language

Comments

Attach File(Max. Size: 2 MB)

A few simple rules when posting your Comments,

Please post only answers relevant to the topic of discussion.

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.