
How to use (pointer to function), and function and pointer to (pointer to function)
Quote:
> int *hello(int, int);
> int (* hello)(int, int);
> int *(* hello)(int, int);
> Can anyone help me to write six function to explain the above, three for
> return value and three for (void).
first of all, your request doesn't make sense, but even if it did, no, we do
not do your homework for you.
FYI:
cdecl> explain int *hello(int, int);
declare hello as function (int, int) returning pointer to int
cdecl> explain int (* hello)(int, int);
declare hello as pointer to function (int, int) returning int
cdecl> explain int *(* hello)(int, int);
declare hello as pointer to function (int, int) returning pointer to int
--
/"\ m i k e b u r r e l l
X AGAINST HTML MAIL,
/ \ AND NEWS TOO, dammit