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