title: How do I get bit-by-bit data from an integer value in C?
body: <p>I want to extract bits of a decimal number.</p>
  
  <p>For example, 7 is binary 0111, and I want to get 0 1 1 1  all bits stored in bool. How can I do so?</p>
  
  <p>OK, a loop is not a good option, can I do something else for this?</p>