fork download
  1. #include <iostream>
  2.  
  3. struct foo {
  4. bool a = true;
  5. bool b = false;
  6. bool c;
  7. };
  8.  
  9. int main()
  10. {
  11. struct foo bar;
  12. std::cout << bar.a << " "<< bar.b << " "<< bar.c << std::endl;
  13. struct foo baz;
  14. std::cout << baz.a << " "<< baz.b << " "<< baz.c << std::endl;
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 5308KB
stdin
Standard input is empty
stdout
1 0 0
1 0 0