S
sabarish
hi friend,
what is function pointer how it is useful?
plz help me.
what is function pointer how it is useful?
plz help me.
sabarish said:what is function pointer how it is useful?
sabarish said:hi friend,
what is function pointer
how it is useful?
sabarish said:hi friend,
what is function pointer how it is useful?
plz help me.
sabarish said:what is function pointer how it is useful?
sabarish said:hi friend,
what is function pointer how it is useful?
plz help me.
pete said:The only thing that you can do with the name of a function
in a correct C program, is derive a pointer from it,
either through the address operator &, or by conversion.
Mike Wahler said:The *only* thing?
What about calling the function?![]()
[snip]osmium said:It is a pointer that points to a function rather to a variable which is the
more common case.
A nice understandable usage is in the standard library, qsort which is geek
speak for quick sort.
Mike Wahler said:The *only* thing?
What about calling the function?![]()
Ben Pfaff said:All function calls take place via function pointers. See the
standard:
6.5.2.2 Function calls
Constraints
1 The expression that denotes the called function77) shall have
type pointer to function returning void or returning an
object type other than an array type.
...
77) Most often, this is the result of converting an
identifier that is a function designator.
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.