kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

6_5_69_file_scope_compound_literal_struct_array.c (164B)


      1 struct S {
      2   int a;
      3   int b;
      4 };
      5 
      6 static struct S* p = (struct S[]){{10, 12}, {.a = 7, .b = 13}};
      7 
      8 int test_main(void) { return p[0].a + p[0].b + p[1].a + p[1].b; }