3 ms·
The parentheses in (*parray)[i] would be unnecessary if dereferencing used postfix notation. Current: All postfix *ptr[3] ptr[3]* // indexe
by kazinator 5mo ago
The parentheses in (*parray)[i] would be unnecessary if dereferencing used postfix notation.
Current: All postfix
*ptr[3] ptr[3]* // indexed access, then deref
(*ptr)[3] ptr*[3] // deref, then indexed access*
- geocar 5mo agoDereferencing does have a postfix notation, so you can try it (sort of): #define $ [0] then you can say ptr $[0] or ptr[0]$ and see if it's really better...