fork(6) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. typedef struct {
  5. int x;
  6. int y;
  7. } Point;
  8. void fun(Point &);
  9. int main()
  10. {
  11. Point p;
  12. p.x = 12;
  13. p.y = 10;
  14. fun(p);
  15. return 0;
  16. }
  17. void fun(Point &p)
  18. {
  19. p.x++;
  20. p.y++;
  21. }
Success #stdin #stdout 0s 3464KB
stdin
Standard input is empty
stdout
Standard output is empty