Re:Gosh Darn Function Pointers
by majewsky on Monday January 15, 2018 @05:33PM
(#16154059)
It says that `func` is a type whose values are all functions with the signature `int foo(into arg)`.
The way to read a typedef (in general) is when you strip off the word "typedef", instead of declaring a type, it declares a value of that type. This applies to all types, not just function types. For example, an array of 5 ints is declared as
The way to read a typedef (in general) is when you strip off the word "typedef", instead of declaring a type, it declares a value of that type. This applies to all types, not just function types. For example, an array of 5 ints is declared as
So the type of all 5-element arrays is defined by