title: error: lvalue required as left operand of assignment (C)
body: <p>I see many different answers to this question and have looked at many of them yet I cannot find the answer to my problem.</p>
  
  <p>The error im getting is</p>
  
  <pre><code>bitarray.c:27:19: error: lvalue required as left operand of assignment
  
  (newArr &lt;&lt; i) ^= 1;
  </code></pre>
  
  <p>Any ideas?
  Thanks</p>