title: What does """ if((counter & (1 << j)) > 0): """ do?
body: <p>I am trying to print all subsets of an array. I came across this <code>if</code> statement in one of the solutions.</p>
  <p>What does this <code>if</code> condition do?</p>
  <pre><code>if((counter &amp; (1 &lt;&lt; j)) &gt; 0):
  </code></pre>