W
Wenjie
Hello, for the following code:
unsigned int var = 0xFF2277F0UL;
unsigned char take2 = (var << 8) >> 24;
Is there any pitfall about the shift? (get '22' i.e. 34 or '"' as wanted)
Thanks and best regards,
Wenjie
unsigned int var = 0xFF2277F0UL;
unsigned char take2 = (var << 8) >> 24;
Is there any pitfall about the shift? (get '22' i.e. 34 or '"' as wanted)
Thanks and best regards,
Wenjie