XOR two Binary Strings c++
<p>I have two strings as follows : </p>

<pre><code>STRING1  :        011011110011000

STRING2  :        011001000001000

EXPECTED OUTPUT : 000010110010000
</code></pre>

<p>However, when i try to XOR them(bit-wise) using the following code, the output is blank.
Code:</p>

<pre><code>for(int i = 0; i&lt;15; i++)
 {
    final_key[i] = STRING1[i] ^ STRING2[i]; 
    cout&lt;&lt;" XOR = "&lt;&lt;final_key[i];
 }
</code></pre>

<p>Any help would be appreciated.</p>