This is a discussion on Passing function as argument within the C Programming forums, part of the General Programming Boards category; Originally Posted by Elysia How do you do it? Passing is easy: func(&function); Declaring a function to take a pointer ...
It is too clear and so it is hard to see.
A dunce once searched for fire with a lighted lantern.
Had he known what fire was,
He could have cooked his rice much sooner.
Yes, both work, but I tend to use the former because it more visible that it is actually a pointer.
For information on how to enable C++11 on your compiler, look here.
よく聞くがいい!私は天才だからね! ^_^