title: Why is my power operator (^) not working?
body: <pre><code>#include &lt;stdio.h&gt;
  
  void main(void)
  {
      int a;
      int result;
      int sum = 0;
      printf("Enter a number: ");
      scanf("%d", &amp;a);
      for( int i = 1; i &lt;= 4; i++ )
      {
          result = a ^ i;
  
          sum += result;
      }
      printf("%d\n", sum);
  }
  </code></pre>
  
  <p>Why is <code>^</code> not working as the power operator?</p>