Hacker News new | past | comments | ask | show | jobs | submit login

in this case the & is not to point to an adress, but a bitwise and. 0xff is hexadecimal for 255, or 00000000000000000000000011111111 (assuming 32-bit integers), so the logical and masks out the lower 8 bits of (prndindex+1), effectively doing modulo 255.



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

Search: