4 ms·
But this is exactly what the index operator is doing. When you write (for example) arr[0] The compiler is re-writing your code as: *(arr + 0) Since addi
by rhinoceraptor 10y ago
But this is exactly what the index operator is doing. When you write (for example)
arr[0]
The compiler is re-writing your code as:
*(arr + 0)
Since addition is commutative, you can also write arr[0] as 0[arr].
- bonoboTP 10y agoYes, it's in the article.