3 ms·
I've found it much easier to learn that C declarations are based on how they are used, than try to remember this (IMO very unhelpful) "spiral" rule. If you hav
by Ferret7446 2y ago
I've found it much easier to learn that C declarations are based on how they are used, than try to remember this (IMO very unhelpful) "spiral" rule.
If you have int on the left and some kind of declaration for foo on the right, that means that when you use foo with all of the present syntax, you get an int.
For example, in
char *(*fp)( int, float *)
if you use fp like this
*(*fp)( int, float *)
you get a char.