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.
1.4m articles
1.4m replys
5 comments
57.0k users