Ask your own question, for FREE!
Computer Science 9 Online
OpenStudy (christos):

C++, void preorder(void (*visit)(T &)); If someone could explain to me why these parameters inside this function definition looks so weird

OpenStudy (rsmith6559):

That looks to me like a function declaration for a function (preorder) that takes a function pointer (to visit) which takes a reference to a T as visit's argument.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!