#include #include #include //for isprint using namespace std; int main() { char c = ~0; //0 is all zeroes; ~0 is all ones. if (isprint(static_cast(c)) != 0) { cout << "The character is '" << c << "'.\n"; } else { cout << "The character code is " << static_cast(static_cast(c)) << ".\n" << static_cast(c) << "\n" << static_cast(c) << "\n" << (c & 0xFF) << "\n"; } return EXIT_SUCCESS; }