fork download
  1. typedef struct {
  2. int x;
  3.  
  4. } Point;
  5.  
  6.  
  7. main() {
  8. Point array[20];
  9. array[0].x = 1;
  10. array[1].x = 2;
  11. Point* p = array;
  12. printf("%d", p->x);
  13. p++;
  14. printf("%d", p->x);
  15. }
Success #stdin #stdout 0s 2160KB
stdin
Standard input is empty
stdout
12