fork(3) download
  1. #include <iostream>
  2.  
  3. int main() {
  4. typedef unsigned char byte;
  5. unsigned int buffer = 258374;
  6. unsigned int value = ((byte) ((buffer >> 8) & 0xFF));
  7. std::cout << value << std::endl;
  8. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
241