Created
May 19, 2014 02:57
-
-
Save uhziel/dc47de5f384b6f95824f to your computer and use it in GitHub Desktop.
The size of scalars
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
| #include <iostream> | |
| int main() | |
| { | |
| std::cout << "The size of scalars:" << std::endl; | |
| std::cout << "int\t" << sizeof(int) << std::endl; | |
| std::cout << "long\t" << sizeof(long) << std::endl; | |
| std::cout << "short\t" << sizeof(short) << std::endl; | |
| return 0; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment