title: Meaning of XOR in programming? What does it change an integer value to?
body: <p>What does a XOR operator change a integer to ? Can we get some optimised thing out of it ?</p>
  
  <pre><code>int arr[7]={1,5,7,9,5,2,5};
  int xora[7];
  xora[0]=0;
  for(i=1; i&lt;7; i++)
       xora[i] = xora[i-1]^arr[i];
  </code></pre>
  
  <p>After this what is the significance of <code>xor[i]</code> now?
  Can this be some kind of optimisation ?
  xora comes out to be 
   <code>5       2       11      14      12      9</code>
  What does this numbers specify ?
  <a href="https://www.hackerearth.com/problem/algorithm/stone-game-a39dbbe7/" rel="nofollow noreferrer">Linked to a programming problem's solution Here</a></p>