fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. struct X {
  6. int *p;
  7. int a;
  8. };
  9. X x = {&x.a, 123};
  10. cout << *x.p << endl;
  11. return 0;
  12. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
123