Re:How Do I Declare a Function Pointer in C?
by ramshorns on Thursday January 19, 2017 @03:14PM
(#13439103)
So, applied to the examples:
variableName is a pointer to a function that accepts parameterTypes and returns returnType
variableName is a const pointer to a function that accepts parameterTypes and returns static returnType (or maybe variableName is the static thing?)
arrayName is an array of pointers to functions that accept parameterTypes and return returnType
my_function is a function that accepts an argumentName, which is a pointer to a function accepting parameterTypes and returning returnType, and returns an int
my_function is a function that accepts int and other parameters and returns a pointer to a function that accepts parameterTypes and returns returnType
a typeName is now a pointer to a function that accepts parameterTypes and returns returnType
[ Parent
| on HN ]
There are no comments on this comment yet.