fork download
  1. #include <iostream>
  2.  
  3. class Foo {
  4. int x;
  5. public:
  6. Foo() {
  7. std::cout << std::hex << this << std::endl;
  8.  
  9. this->x = 5;
  10. }
  11. };
  12.  
  13. int main() {
  14. Foo* foo = new Foo();
  15. return 0;
  16. }
Success #stdin #stdout 0s 16064KB
stdin
Standard input is empty
stdout
0x2ad1cad07c20