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