3 ms·
Even if your coding style prohibits multiple declarations, you still don't escape the fact that in C, the asterisk binds to the variable identifier, not to the
by MaxBarraclough 6y ago
Even if your coding style prohibits multiple declarations, you still don't escape the fact that in C, the asterisk binds to the variable identifier, not to the type. It crops up again in the function pointer syntax:
void *(*foo)(int *);
foo is a pointer to a function which accepts a pointer-to-int and returns a pointer-to-void.
( Taken from https://www.cprogramming.com/tutorial/function-pointers.html https://www.cprogramming.com/tutorial/function-pointers.html )
- tgb 6y agoThanks, this is the best example I've seen.