fork(2) download
  1. #include <stdio.h>
  2.  
  3. struct point_tag {
  4. int x;
  5. int y;
  6. };
  7.  
  8. typedef struct point_tag Point;
  9.  
  10. int main(void)
  11. {
  12. Point pt[] = { {10,20}, {30, 40}, {50,60}};
  13. pt[0] = (Point){100,200};
  14. printf("%d %d\n", pt[0].x, pt[0].y);
  15. return 0;
  16. }
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
100 200