If I wanted to declare a typedef
for a certain type, I would go for a syntax like this one, in this example:
typedef int INT
But when I wanted to create a typedef
for a function, I was expecting the following syntax to be the one:
typedef void (*)(int, char) myfunc;
Instead the correct one is:
typedef void (*myfunc)(int, char);
So why the first one is not correct?