_STANDARD C: AN UPDATE_ by Rex Jaeschke Example 1: extern int n; void f(int m, int x[m][n]) { char c[m]; int (*p)[n]; } Example 2: (a) int i[20] = {5, 10, [17] = 50, 60}; (b) enum color { red, green, blue }; unsigned int total[] = { [red] = 100, [blue] = 200, [green] = 50 }; (c) struct date { int year; int month; int day; }; struct date birthday = { [month] = 1, [day] = 2, [year] = 1950 }; Example 3: struct Point { int x; int y; }; void drawline(struct Point *, struct Point *); void f(int x2, int y2) { /*1*/ const int *p = (int []){x2, 5, y2, 4}; /*2*/ drawline(&(struct Point){0,0}, &(struct Point){x2,y2}); }