title: XORing two double variables
body: <p>I wrote the following two lines :</p>
  
  <p>Line 1 :</p>
  
  <pre><code>int a;
  a=a^a;
  </code></pre>
  
  <p>Line 2 :</p>
  
  <pre><code>double d;
  d=d^d;
  </code></pre>
  
  <p>Line 1 Works Fine But Line 2 Gives Me Error :</p>
  
  <pre><code>error: invalid operands of types ‘double’ and ‘double’ to binary ‘operator^’
  </code></pre>
  
  <p>Can Somebody tell me why the bit-wise <strong>XOR operator</strong> works on two <strong>int</strong> but doesn't work on two <strong>double</strong> variables...??</p>
  
  <p>Seems like a silly doubt...but i really couldn't get through my program without this...!</p>