source:
CIVL/mods/dev.civl.com/examples/languageFeatures/pointerConvert.c@
8553be8
| Last change on this file since 8553be8 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 113 bytes | |
| Rev | Line | |
|---|---|---|
| [c0d32c7] | 1 | |
| 2 | typedef struct Value_t{ | |
| 3 | int x; | |
| 4 | } Value; | |
| 5 | ||
| 6 | int main(){ | |
| 7 | int a,*p=&a; | |
| 8 | Value *v; | |
| 9 | ||
| 10 | v=(Value*)p; | |
| 11 | v->x=5; | |
| 12 | } |
Note:
See TracBrowser
for help on using the repository browser.
