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