fork download
  1. #include <iostream>
  2.  
  3. struct A
  4. {
  5. void print(){
  6. std::cout << a << ":" << b << ":" << c << "\n";
  7. }
  8. private:
  9. int a, b, c;
  10. };
  11.  
  12. int main()
  13. {
  14. A a1{};
  15. A a2 = {};
  16.  
  17. a1.print();
  18. a2.print();
  19.  
  20. return 0;
  21. }
Success #stdin #stdout 0s 2928KB
stdin
Standard input is empty
stdout
-1218613260:-1079371112:134514537
-1079371144:134513793:-1218612476