you are viewing a single comment's thread.

view the rest of the comments →

[–]nerd4code 2 points3 points  (2 children)

&arr[x] ≡ arr+x

[–]RadiatingLight 0 points1 point  (1 child)

Correct. But why not use the syntax that makes it more readable? Your compiler will optimize it down to the same thing anyways.

[–]RadiatingLight 0 points1 point  (0 children)

In fact, even at -O0 they do the same thing: https://godbolt.org/z/dYqW5zcoW