4 ms·
Argh! All of these examples seem backwards to me. Why on earth isn't "a pointer to an array of int" something like: *(int[])
by nicoburns 5y ago
Argh! All of these examples seem backwards to me. Why on earth isn't "a pointer to an array of int" something like:
*(int[])
- userbinator 5y agoBecause of how precedence works --- you start from the inside and work outwards, the same as when evaluating ordinary maths expressions. "Pointer to array of int" means you dereference it first to get an array of ints, then index to get an int.