Jens Theisen wrote:
typedef int (*foo) ();
typedef foo (*bar) ();
How to define bar with a single typedef?
Is this homework?
'foo' is a pointer to a function that takes no args and returns
an int. 'bar' is a pointer to a function that takes no args and
returns a pointer to a function that takes no args and returns
an int. I think it should be
typedef int (*((*bar)()))();
How to verify it? I'll leave it to you.
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask