R
ram kishore
What is the difference between
(int *) fun() and int *fun() ?
What is the advantage of pointers to functions?
(int *) fun() and int *fun() ?
What is the advantage of pointers to functions?
ram said:What is the difference between
(int *) fun() and int *fun() ?
What is the advantage of pointers to functions?
What is the difference between
(int *) fun() and int *fun() ?
What is the advantage of pointers to functions?
zR0 said:This can be a good resource on this topic.
http://www.newty.de/fpt/index.html
What is the difference between
(int *) fun() and int *fun() ?
What is the advantage of pointers to functions?
[...]Nick Keighley said:one gives a syntax error the other doesn't
pete said:All function calls are made
with an operand of pointer to function type.
The original question,
as well the web page advice that I disagreed with,
both seemed not to acknowledge
that a function call is an operation which takes
an expression of a function to pointer type as an operand
There are a lot of fundamental concepts
such as "what is a function call?",
that you really don't need to have a complete understanding of
in order to write a lot of correct C programs,
but I like to expound upon them when I can anyway.
Keith Thompson <[email protected]> wrote:
Yup. And there are some historical "distortions" tossed in too
(for instance, if I recall, function_name() when function_name
was a pointer (sic) was not accepted by many early C compilers).
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.