fork(1) download
  1. #include <iostream>
  2. struct __attribute__((__packed__)) mystruct_A
  3. {
  4. char a;
  5. int b;
  6. char c;
  7. }x;
  8. int main()
  9. {
  10. std::cout<<sizeof(x)<<'\n';
  11. }
  12.  
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
6