Is char c2=i1<<8>>24; valid C syntax? (Where i1 is and unsigned integer) Additionally, will it yield the result of shifting i1
char c2=i1<<8>>24;
i1
Yes, it is a valid syntax. It is a valid syntax also for signed int i1, in which case you can achieve filling the 'upper part' of the value with the bit from a chosen position.
int i1