source:
CIVL/mods/dev.civl.abc/examples/svcomp/array.c
| Last change on this file was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 234 bytes | |
| Rev | Line | |
|---|---|---|
| [aad342c] | 1 | #include<stdio.h> |
| 2 | #include<stdlib.h> | |
| 3 | ||
| 4 | struct complex_t{ | |
| 5 | int a; | |
| 6 | int b; | |
| 7 | int c[2]; | |
| 8 | }; | |
| 9 | ||
| 10 | int main(){ | |
| 11 | //int a[100/sizeof(int)]; | |
| 12 | int a[1024 / (8 * (int) sizeof (int))]; | |
| 13 | struct complex_t d={1,2,{3,4}}; | |
| 14 | ||
| 15 | a[0]=0; | |
| 16 | a[1]=d.c[0]; | |
| 17 | } |
Note:
See TracBrowser
for help on using the repository browser.
