Re:Essential C (2003) [pdf]
by wahern on Thursday September 03, 2020 @01:42PM
(#24366535)
But p - 2 is not the same as p + -2, and it's not clear in your example whether the former suffices or the latter is required. I can definitely imagine examples where the latter is required--certainly C clearly accommodates this usage--but IME it's nonetheless a rare scenario and not something that could, alone, justify always using signed offsets. Pointers are intrinsically neither signed nor unsigned; it's how you use them that matters.
[ Parent
| on HN ]
There are no comments on this comment yet.