Iterating bits of a char

Posted by Hamza Yerlikaya on Stack Overflow See other posts from Stack Overflow or by Hamza Yerlikaya
Published on 2010-03-19T20:23:54Z Indexed on 2010/03/19 20:31 UTC
Read the original article Hit count: 216

Filed under:
|

Assuming I have char "C" whose ascii code is 0110 0111, How can iterate over its bits? I would like to build a vector from these 1's and 0's....

© Stack Overflow or respective owner

Related posts about java

Related posts about bit-manipulation