Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I wonder why someone decided that accessing "one past the end" should be fine


Short answer: so you can walk a pointer down the elements of an array without having to have weird code to deal with the end.


It's explained in the addendum to the article.


thanks




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: