If I do *ptr[x], is that equivalent to *(ptr[x]), or (*ptr)[x]?
*ptr[x]
*(ptr[x])
(*ptr)[x]
See the Wikipedia operator precedence table, or, for a more detailed table, this C/C++ specific table.
548k questions
547k answers
4 comments
86.3k users