Bit operations, problem converting
Hello everyone, anyone know how to produce a 32 bit integer from a 16 bit short number?
Like say I have,
16-bit short number whose value is equal to -24001. How would i convert this short number to an int k, so that the output of k is equal to 41535.
This is the first time I ever messed with bit shifting, so i'm not sure how this is suppose to look. I know I can use & to change the 1's to 0's. But other then that i'm pretty confused.
Thanks for listening
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center