1 | struct Inner { |
---|---|
2 | int a; |
3 | int b; |
4 | }; |
5 | |
6 | struct Outer { |
7 | Inner *inner; |
8 | }; |
9 | |
10 | int main() { |
11 | Inner inner{.a: 42, .b: 56}; |
12 | Outer outer{.inner: &inner}; |
13 | Inner **Ptr = &(outer.inner); |
14 | Inner *&Ref = outer.inner; |
15 | return 0; // break here |
16 | } |
17 |