what is the diference between pointer to the function and
function to the pointer?

Answer Posted / selvakumar vedhachalam

There is no difference between poiter to function and
function pointer. It may be two different of saying the
same thing.

Pointer always points to a address.
Function pointer alwyas points to a address of a function.

Example:
void (*fn_ptr)(int, int);

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why can arithmetic operations not be performed on void pointers?

581


What is volatile keyword in c?

571


Explain what is the stack?

622


What is the difference between volatile and const volatile?

554


a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor

625






write a program to print data of 5 five students with structures?

1591


What is volatile, register definition in C

677


What is meant by recursion?

617


Can we initialize extern variable in c?

621


What is the use of a conditional inclusion statement in C?

590


Is null valid for pointers to functions?

594


What is the difference between exit() and _exit() function?

592


a program that can input number of records and can view it again the record

1474


Explain the difference between null pointer and void pointer.

654


the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none

636