fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. #pragma pack(1)
  5. struct AF1
  6. {
  7. int Z[19];
  8. int X[12];
  9. char F;
  10. };
  11.  
  12. #pragma pack(4)
  13. struct AF8
  14. {
  15. int Z[19];
  16. int X[12];
  17. char F;
  18. };
  19.  
  20.  
  21. int main() {
  22.  
  23. cout << sizeof(AF1) << endl;
  24. cout << sizeof(AF8) << endl;
  25. return 0;
  26. }
Success #stdin #stdout 0s 5308KB
stdin
Standard input is empty
stdout
125
128