"int data; data >> 16" is actually Undefined Behaviour. My suggestion, in addition to most of what’s already been said, is to stick to unsigned integera as much as possible and then some, in C.
mirabilos
- 121
- 4
default
Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange"int data; data >> 16" is actually Undefined Behaviour. My suggestion, in addition to most of what’s already been said, is to stick to unsigned integera as much as possible and then some, in C.