source:
CIVL/examples/languageFeatures/anon.c@
bd7a43e
| Last change on this file since bd7a43e was 8ed8eba, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 188 bytes | |
| Rev | Line | |
|---|---|---|
| [8ed8eba] | 1 | #include <stdio.h> |
| 2 | struct S { | |
| 3 | int x; | |
| 4 | int; | |
| 5 | int :10; | |
| 6 | int y; | |
| 7 | }; | |
| 8 | ||
| 9 | int main() { | |
| 10 | struct S s; | |
| 11 | printf("%zu %zu %zu\n", sizeof(int), sizeof(struct S), sizeof(s)); | |
| 12 | s.x=10; | |
| 13 | s.y=20; | |
| 14 | } |
Note:
See TracBrowser
for help on using the repository browser.
