/****************************************************************************** * This program prints integer hexadecimal literals. * * Copyright © 2016 Richard Lesh. All rights reserved. *****************************************************************************/ #undef NDEBUG #include #include using namespace std; int main(int argc, char **argv) { cout << 0x0 << endl; cout << 0x8 << endl; cout << 0xF << endl; cout << 0x146 << endl; cout << 0xABCD << endl; cout << 0x1A2B3C4D << endl; cout << -0x146 << endl; return 0; }