fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. short int a = 0x1234, b = 0x5678;
  5. a = (a & 0xFF00) | ((b >> 8) & 0xFF);
  6. printf("%x", a);
  7. return 0;
  8. }
  9.  
Success #stdin #stdout 0s 2168KB
stdin
Standard input is empty
stdout
1256