warnings in playing with bits
<pre><code> BYTE original = 0xF0F0;
     BYTE bMask = 0x0000;
BYTE wMask = 0xFFFF;
BYTE  newBits = 0xAAAA;

/*&amp; operation with "0bit set 0" &amp; "1bit give no change to original byte" */
cout&lt;&lt;"Original o: "&lt;&lt;bits(original)&lt;&lt;endl;
cout&lt;&lt;"NewBits: "&lt;&lt;bits(newBits)&lt;&lt;endl;
cout&lt;&lt;"BMask m: "&lt;&lt;bits(bMask)&lt;&lt;endl;
cout&lt;&lt;"WMask m: "&lt;&lt;bits(wMask)&lt;&lt;endl;
cout&lt;&lt;"o &amp; m with BMask: "&lt;&lt;bits(original &amp; bMask)&lt;&lt;endl;/*0 set original bit as 0 */
cout&lt;&lt;"o &amp; m with WMak: "&lt;&lt;bits(original &amp; wMask)&lt;&lt;endl;/*1 bit put no effect on image*/
cout&lt;&lt;"Result"&lt;&lt;bits(original &amp; wMask | newBits)&lt;&lt;endl;
</code></pre>

<p>My OutPut is right but i am getting warnings...</p>

<p>first i did declaration with char type because char take 1Byte in memory.. but still that give me warning,...</p>

<p>Then i apply BYTE byte instead of char...because BYTE also take 1Byte in memory..</p>

<p>Warnings:
warning C4309: 'initializing' : truncation of constant value    </p>

<p>this warning is on all declaration lines.. 
If char and Byte take 1Byte in memory then why i am getting warning..
what am i missing here? Can any one help me..
Expecting a good response 
Thanks</p>
