Sign up to request clarification or add additional context in comments.
Comments
0
For the most parts, arrays and pointers are interchangeable (as arrays decays to pointers), and that includes the syntax to access them. So yes, you can use the array-indexing syntax to access a pointer.
In fact, doing a[x] is equivalent to doing *(a + x).