fork download
  1. #include <stdio.h>
  2.  
  3. typedef struct{
  4. int x;
  5. int y;
  6. }coordinate;
  7.  
  8. int main(void) {
  9. coordinate me ={1,2};
  10.  
  11. coordinate *shadow = &me;
  12. shadow ->x = 2;
  13. shadow ->y = 3;
  14. printf("%d,%d\n", shadow->x, shadow->y);
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 5324KB
stdin
Standard input is empty
stdout
2,3