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

I read that with a combination of fascination and nausea. Well played.

But actually I remember that it can occasionally be used in image processing too, when you would use a pointer to iterate through an image, I would routinely use things like

    dx = *(ptr+1)-*(ptr-1);
which is essentially the same as

    dx = ptr[1] - ptr[-1];


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

Search: