set integer value as bit mask

Posted by Vladimir on Stack Overflow See other posts from Stack Overflow or by Vladimir
Published on 2010-05-21T13:07:37Z Indexed on 2010/05/21 13:10 UTC
Read the original article Hit count: 193

Filed under:

What is simplest way to assign a bit mask to integer value? For example I want integer with first, third and forth bits = 1, other = 0.

© Stack Overflow or respective owner

Related posts about c