3 ms·
Somehow I cannot find those "spatial" (for lack of better name) rules useful. What works for me is "type declaration mimics usage". So I find the variable name
by praptak 13y ago
Somehow I cannot find those "spatial" (for lack of better name) rules useful.
What works for me is "type declaration mimics usage". So I find the variable name, parse the declaration as usage and then reconstruct the type. It goes like this:
char *((*foo)[3])(int);
Ok, so if you dereference foo, then index[3], then call with int, then dereference, you get char?
Cool, looks like foo is a pointer to an array of size 3 of functions that take int and return pointer to char.