5 ms·
> char *5[arr] Isn't that exploiting a quirk of the operator's definition, rather than how the operator is intended to be used?
by chc 10y ago
> char *5[arr]
Isn't that exploiting a quirk of the operator's definition, rather than how the operator is intended to be used?
- mnarayan01 10y agoI assume you're right, though I would love to see some of the original discussion around it. That said, while I don't think it's a catastrophic point against "declarations mirror use", I do think it's a strike against it. Edit: I guess I'll also note here just for fun that while char [5]arr; seems reasonable enough, char [4][5]arr1; char[5][4] arr2; seems less so.