|
|
|
|
|
by int_19h
3464 days ago
|
|
Not just pointer arithmetic; also pointer comparisons. One-past-the-end pointer must compare greater-than any other pointer into that array. So an implementation that could stick an array at the very end of the address space, and do wraparound for one-past-the-end so that it's represented by all bits zero, would then need to special-case that zero value when performing any pointer comparisons. |
|
But yes, you'd need logic for pointer comparisons as well.