Why are the results different when I did bitwise right shift in C language?

后端 未结 0 1815
庸人自扰
庸人自扰 2021-01-28 15:38

I wrote the following code to understand the bit-wise right shift operation,

unsigned long a = 0;
unsigned long b = 0xFFFFFFFF;
a = ~a;                   // now a         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题