fork(1) download
  1. #include <stdio.h>
  2.  
  3.  
  4. typedef struct {
  5. } Foo;
  6.  
  7. typedef struct {
  8. int x[0];
  9. } Bar;
  10.  
  11. int main() {
  12. Foo fuuu = {};
  13. Bar bagr = {};
  14. printf("sizeof(Foo) = %d\n" ,sizeof(fuuu));
  15. printf("sizeof(Bar) = %d\n" ,sizeof(bagr));
  16.  
  17.  
  18. printf("sizeof(Foo) = %d\n" ,sizeof(Foo));
  19. printf("sizeof(Bar) = %d\n" ,sizeof(Bar));
  20.  
  21. return 0;
  22. }
Success #stdin #stdout 0s 5492KB
stdin
Standard input is empty
stdout
sizeof(Foo) =  0
sizeof(Bar) =  0
sizeof(Foo) =  0
sizeof(Bar) =  0