fork(66) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct S1
  5. {
  6. };
  7.  
  8. struct S2
  9. {
  10. int a[0];
  11. };
  12.  
  13. int main() {
  14.  
  15. std::cout << sizeof(S1) << std::endl;
  16. std::cout << sizeof(S2) << std::endl;
  17.  
  18. return 0;
  19. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
1
0