0163-array.c (225B)
1 struct S {int a; int b;}; 2 struct S arr[2] = {[1] = {3, 4}, [0] = {1, 2}}; 3 4 int 5 main() 6 { 7 if(arr[0].a != 1) 8 return 1; 9 if(arr[0].b != 2) 10 return 2; 11 if(arr[1].a != 3) 12 return 3; 13 if(arr[1].b != 4) 14 return 4; 15 return 0; 16 }