1 | struct MyStruct { |
---|---|
2 | int before; |
3 | char var[5]; |
4 | int after; |
5 | }; |
6 | |
7 | int |
8 | main() |
9 | { |
10 | struct MyStruct struct_arr[3] = {{.before: 112, .var: "abcd", .after: 221}, |
11 | {313, "efgh", 414}, |
12 | {515, "ijkl", 616}}; |
13 | struct MyStruct *struct_ptr = struct_arr; |
14 | return struct_ptr->before; // Set a breakpoint here |
15 | } |
16 |