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.
2.1m questions
2.1m answers
60 comments
57.0k users