source:
doc/theses/rob_schluntz_MMath/examples/ctor/array_ctor.c
@
ab1a9ea
Last change on this file since ab1a9ea was 67982887, checked in by , 6 years ago | |
---|---|
|
|
File size: 274 bytes |
Rev | Line | |
---|---|---|
[9c14ae9] | 1 | struct X { int x, y, z; }; |
2 | void ?{}(X *); | |
3 | void ?{}(X *, int); | |
4 | void ?{}(X *, int, int); | |
5 | void ?{}(X *, int, int, int); | |
6 | void ^?{}(X *); | |
7 | void f() { | |
8 | X x[10] = { { 1, 2, 3 }, { 4 }, { 7, 8 } }; | |
9 | } | |
10 | ||
11 | void g() { | |
12 | X x[10][10] = { | |
13 | { { 1, 2, 3 }, { 4 } }, | |
14 | { { 7, 8 } } | |
15 | }; | |
16 | } |
Note: See TracBrowser
for help on using the repository browser.