pointers?

B

Ben Pfaff

Shraddha said:
What is exactly diffrence between function to pointer and pointer to
function?

A pointer to a function can be called using the () operator.
There is no such thing as a function to a pointer; it is not a
meaningful phrase.
 
C

Chris Dollin

Shraddha said:
What is exactly diffrence between function to pointer and pointer to
function?

What's a "function to pointer"? Have you an example to show?
 
M

Malcolm McLean

Shraddha said:
What is exactly diffrence between function to pointer and pointer to
function?
"function pointer" is the term used for a pointer to a function, i.e. a
variable which holds the address of a function and can be used to call it
indirectly.

"function to pointer" isn't a term I've heard. Maybe it refers to the act of
setting a function pointer to a value, by writing fptr = foo; fptr is the
pointer, foo the name of the function.
 
N

newbee1984

What is exactly diffrence between function to pointer and pointer to
function?

Maybe you want to ask the different between "int * func()" and "int
(*func)()".

the first means function return a pointer;the second means pointer to
function.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top