C++

Asked • 09/22/19

Typedef function pointer?

I'm learning how to dynamically load DLL's but what I don't understand is this line typedef void (*FunctionFunc)();I have a few questions. If someone is able answer them I would be grateful.1. Why is `typedef` used?2. The syntax looks odd; after `void` should there not be a function name or something? It looks like an anonymous function.3. Is a function pointer created to store the memory address of a function?So I'm confused at the moment; can you clarify things for me?

1 Expert Answer

By:

David A. answered • 10/10/19

Tutor
4.7 (14)

Experienced C++ tutor who loves to mentor and pass on my knowledge

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.