6_5_19b_post_inc_struct_ptr.c (183B)
1 struct Pair { 2 int a; 3 int b; 4 }; 5 6 int test_main(void) { 7 struct Pair xs[3] = {{1, 2}, {3, 4}, {5, 6}}; 8 struct Pair* p = xs; 9 p++; 10 if (p != xs + 1) return 20; 11 return p->b; 12 }
kitkit | |
| git clone https://git.ryansepassi.com/git/kit.git | |
| Log | Files | Refs | README |