fork(4) download
  1. #include <stdio.h>
  2.  
  3. struct foo {
  4. int a;
  5. } __attribute__((packed));
  6.  
  7. struct bar {
  8. char b;
  9. struct foo bla;
  10. char a;
  11. };
  12.  
  13. int main() {
  14. printf("%ld\n", sizeof(struct bar));
  15. return 0;
  16. }
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
6