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

Or C. It just turns into pointer math. Godbolt example here[1], just make sure the `int` is an offset within the bounds of the char* and it's well-defined.

[1] https://godbolt.org/z/YWKK1P7zj



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

Search: