B
bwaichu
What is the ansi correct way to pass a function when the argument is a
function pointer?
void foo(void (*)());
foo(read);
or
foo(&read);
Please ignore the fact that I am not passing the arguments of read in
the above example. Also, both of the above will compile without
warning.
Thanks,
Brian
function pointer?
void foo(void (*)());
foo(read);
or
foo(&read);
Please ignore the fact that I am not passing the arguments of read in
the above example. Also, both of the above will compile without
warning.
Thanks,
Brian