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