fork download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. struct Base
  5. {
  6. int* p;
  7. std::string s;
  8. };
  9.  
  10. struct A : Base
  11. {
  12. A() : Base() { }
  13. };
  14.  
  15. int main()
  16. {
  17. A a;
  18. std::cout << a.p << std::endl;
  19. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
0