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 to 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?

6 s
6

Leave a Reply

Your email address will not be published. Required fields are marked *