Order of operations for dereference and bracket-ref in C

*(ptr[x])

See the Wikipedia operator precedence table, or, for a more detailed table, this C/C++ specific table.

Leave a Comment