fork download
  1.  
  2. #include<stdio.h>
  3. struct point
  4. {
  5. int x;
  6. int y;
  7. };
  8. struct point* function(void);
  9. int main(void)
  10. {
  11. struct point* p;
  12. p=function();
  13. printf("%d %d\n",p->x,p->y);
  14. printf("%d %d\n",(*p).x,(*p).y);
  15. printf("%x\n",p);
  16.  
  17. return 0;
  18. }
  19. struct point* function(void)
  20. {
  21. struct point call={10,20};
  22. printf("%x\n", &call);
  23. return &call;
  24. }
  25.  
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
bfe4de08
10 20
10 20
bfe4de08