2 ms·
It also doesn't really make sense in abstract consideration - is one address "bigger" than the other one?
by mhh__ 6y ago
It also doesn't really make sense in abstract consideration - is one address "bigger" than the other one?
- deleted 6y ago[deleted]
- jerome-jh 6y agoSince one can add to and subtract from a pointer, it is only natural to be able to compare them. And the standard clearly states pointers can be compared, although it requires the two pointers to point to the same array (or last element+1) or to the same structure.