fork(24) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. uint8_t a = 0xab;
  7. uint16_t b = 0x24de;
  8. cout << hex << +a << endl;
  9. cout << hex << b << endl;
  10. return 0;
  11. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
ab
24de