fork download
  1. struct foo {
  2. int *p;
  3. };
  4.  
  5. void someFunction(const foo& theFoo)
  6. {
  7. theFoo.p[0] = 10;
  8. }
  9.  
  10. int main()
  11. {
  12. foo aFoo;
  13. aFoo.p = new int;
  14. someFunction(aFoo);
  15. }
Success #stdin #stdout 0s 3268KB
stdin
Standard input is empty
stdout
Standard output is empty