Hacker News new | ask | show | jobs
by 3836293648 1473 days ago
No, the address itself is not invalid, you're just not allowed to dereference it. Pointers have to point at a valid object or, in the case of arrays, one past the end of the array. It's what `std::end` returns