title: C/C++ check if one bit is set in, i.e. int variable
body: <pre><code>int temp = 0x5E; // in binary 0b1011110.
  </code></pre>
  
  <p>Is there such a way to check if bit 3 in temp is 1 or 0 without bit shifting and masking.</p>
  
  <p>Just want to know if there is some built in function for this, or am I forced to write one myself.</p>