A
Alan Holloway
Hi all,
Firstly thanks for your golden insight on my earlier post re bitwise
operations.
I now have another question!
I've just been reading the excellent Peter van der Linden excerpt [1]
from sun.com (i'm ordering the book when I get paid), and I am getting
to grips with the rules for understanding the complex declarations,
but, and this may sound like I am missing the bigger picture; when
would you use such a declaration like the following?
char * const *(*next)();
I think I am exposing a knowledge gap in regards to function pointers,
as i'm also not so clear when and why one would need to use one, but I
am hoping to hammer it in.. <OT> I understand that signal() needs a
function pointer to return to callback on receiving an arbitrary
signal,</OT> but i'm not sure of any other scenarios of when using a
function pointer would be warranted, and I guess that's the kind of
guidance i'm looking for.
I've seen www.function-pointer.org, but I still cannot figure out
*why* you would need one.
My apologies if this post seems somewhat disorganised or unclear, but
I knew what I meant at the time
Many thanks for your help
Al.
References:
[1] http://www.sun.com/971124/cover-linden/cchap.html
Firstly thanks for your golden insight on my earlier post re bitwise
operations.
I now have another question!
I've just been reading the excellent Peter van der Linden excerpt [1]
from sun.com (i'm ordering the book when I get paid), and I am getting
to grips with the rules for understanding the complex declarations,
but, and this may sound like I am missing the bigger picture; when
would you use such a declaration like the following?
char * const *(*next)();
I think I am exposing a knowledge gap in regards to function pointers,
as i'm also not so clear when and why one would need to use one, but I
am hoping to hammer it in.. <OT> I understand that signal() needs a
function pointer to return to callback on receiving an arbitrary
signal,</OT> but i'm not sure of any other scenarios of when using a
function pointer would be warranted, and I guess that's the kind of
guidance i'm looking for.
I've seen www.function-pointer.org, but I still cannot figure out
*why* you would need one.
My apologies if this post seems somewhat disorganised or unclear, but
I knew what I meant at the time
Many thanks for your help
Al.
References:
[1] http://www.sun.com/971124/cover-linden/cchap.html