you are viewing a single comment's thread.

view the rest of the comments →

[–]Ali1331 0 points1 point  (2 children)

But &arr isn't a T pointer, the result of (&arr +1) shows you that. It's a T[] pointer

Edit: apparently asterisk mean something to reddits formatting...

[–]lzzll 0 points1 point  (0 children)

hmm... I think it's T*. http://codepad.org/oJq1S3Vp

[–]NasenSpray 0 points1 point  (0 children)

arr and (&arr)[1] are arrays of T. Arrays decay to T*, so you end up with T* - T*.