3 ms·
Yes, but this is different: int (* foo) [3] This is a pointer to an array of 3 ints. And you could pass this to an appropriate function as an argument, to
by tpoacher 2y ago
Yes, but this is different:
int (* foo) [3]
This is a pointer to an array of 3 ints.
And you could pass this to an appropriate function as an argument, to pass the whole array, not just a decayed pointer.
And more generally, I'd group things as unambiguously as possible even in your example:
int * (foo [3])
to make the intent clearer