Difference between Funtion to pointer and pointer to function

Showing Answers 1 - 5 of 5 Answers


  • Oct 13th, 2005

it is just as saying pointer to an integer or integer to pointer

  Was this answer useful?  Yes

sujit mahapatro

  • May 9th, 2006


just go thru the two examples written below, to clarify this doubt

ex of pointer to function:

int (*function name)(Argument1,Argument2..)

The above decleration explains that its an pointer to a function whose return type is an intiger.

ex of function to pointer  :

int *function name(Argument1,Argument2..)

The above declaration expalains that a function teturns a pointer to an intiger quantity.

  Was this answer useful?  Yes


  • Dec 6th, 2006


please find the difference between function to pointer and pointer to function

function to pointer means return value of the function is a pointer

where as pointer to function ->holding  the address the function



  Was this answer useful?  Yes

That are not same.

Function to a pointer means the return value of the function is a pointer


int *func (int x,int y)

Whereas pointer to a function is the declaration of pointer that holds the base address of the function.


int (*func) (int x,int y)

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.


Related Answered Questions


Related Open Questions