Last active
August 29, 2015 14:05
-
-
Save uchan-nos/f9fba8ac8977287b97c9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int main() { | |
| char b = -1; | |
| cout << static_cast<int>(b) << endl; | |
| cout << static_cast<uint32_t>(b) << endl; | |
| cout << static_cast<uint32_t>(static_cast<unsigned char>(b)) << endl; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment