This Question has been **Answered**

Featured Replies

- 1
[icode]~(~0 << n)[/icode] makes a bitmask of ones equal to the number 'n'. does this by first filling the integer full of ones, then shifting them to the left 'n' bits (filling lsb's with zeros), then inverts all the bits. for instance, n=5 makes a bitmask = '...00000011111' [icode]x >> … Read More

This question has already been answered. Start a new discussion instead.

Recommended Topics