source:
CIVL/examples/languageFeatures/arrayLiteral.cvl@
28717d7
| Last change on this file since 28717d7 was 0293c3b, checked in by , 12 years ago | |
|---|---|
|
|
| File size: 222 bytes | |
| Rev | Line | |
|---|---|---|
| [30d2a5a] | 1 | #include<stdio.h> |
| 2 | void main(){ | |
| 3 | char* a = "abc"; | |
| 4 | int b = 9; | |
| 5 | int* c = &b; | |
| 6 | printf("a is %s\n", a); | |
| 7 | printf("b is %d\n", *c); | |
| 8 | printf("a is %s\n", "not really a."); | |
| 9 | int* test=(int[]){[2]=9}; | |
| [0293c3b] | 10 | printf("test[2] is %d", test[2]); |
| [30d2a5a] | 11 | } |
| 12 |
Note:
See TracBrowser
for help on using the repository browser.
