fork download
  1. #include <iostream>
  2.  
  3. struct foo {
  4. char bar[ 10 ];
  5. };
  6.  
  7. int main()
  8. {
  9. int foo;
  10. std::cout << sizeof( struct foo ) << '\n';
  11. std::cout << sizeof( foo ) << '\n';
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 2852KB
stdin
Standard input is empty
stdout
10
4