Home > Back-end >  An operator/binary/hex
An operator/binary/hex

Time:03-19

 
#include
Void main ()
{
=0 xf245 short a, b, c;
B=a<8;
C=a> 8;
C=c& 0 x00ff;
A=b + c;
Printf (" a=% x ", a);
}


Line 6 c value should be zero xfff2, can you give me more details on that, why?

CodePudding user response:

Your compiler technology route is found that you use the signed integer to moves to the right, decided to maintain the sign bit is changeless,
The sign bit is 1, so the left shift in all 1,
  • Related