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