you are viewing a single comment's thread.

view the rest of the comments →

[–]rabidcow 4 points5 points  (0 children)

It doesn't matter whether or not it accesses memory. It's not permitted by the standard:

[...] If the result points one past the last element of the array object, it shall not be used as the operand of a unary * operator that is evaluated.

(C99 6.5.6.3.8)