Last active
December 25, 2015 06:49
-
-
Save jeffcrouse/6935189 to your computer and use it in GitHub Desktop.
1. save this program as size.cpp
2. compile it: g++ -o size size.cpp
3. run it: ./size
This file contains 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> | |
using namespace std; | |
int main () | |
{ | |
int foo; | |
cout << "sizeof(foo) = " << sizeof(foo) << endl; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment