T
Tomás Ó hÉilidhe
Take the following:
char unsigned i = 0, j = 5;
...
...
i &= j;
I'd like to see what happens in the last statement. If it were
identical to:
i = i & j;
then the follwoing would happen:
* On the right-hand side, both i and j would be promoted to either
signed int or unsigned int
* The bitwise AND would be performed on these two int's
* Then the result would be converted to an unsigned char to be stored
in i
Does exactly the same thing happen with i &= j?
char unsigned i = 0, j = 5;
...
...
i &= j;
I'd like to see what happens in the last statement. If it were
identical to:
i = i & j;
then the follwoing would happen:
* On the right-hand side, both i and j would be promoted to either
signed int or unsigned int
* The bitwise AND would be performed on these two int's
* Then the result would be converted to an unsigned char to be stored
in i
Does exactly the same thing happen with i &= j?