fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. long long n = 0x0123456789ABCDEF;
  5. int b = 3;
  6. int byte = (n >> (b << 3)) & 0xFF;
  7. printf("%02X\n", byte);
  8. return 0;
  9. }
  10.  
Success #stdin #stdout 0s 2168KB
stdin
Standard input is empty
stdout
89