repo.or.cz
/
tinycc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add predictability in CType initialization.
[tinycc.git]
/
tests2
/
34_array_assignment.c
blob
5885c97326370c298153c177417d43edae8e9a51
1
#include <stdio.h>
2
3
int
main
()
4
{
5
int
a
[
4
];
6
7
a
[
0
] =
12
;
8
a
[
1
] =
23
;
9
a
[
2
] =
34
;
10
a
[
3
] =
45
;
11
12
printf
(
"%d %d %d %d
\n
"
,
a
[
0
],
a
[
1
],
a
[
2
],
a
[
3
]);
13
14
int
b
[
4
];
15
16
b
=
a
;
17
18
printf
(
"%d %d %d %d
\n
"
,
b
[
0
],
b
[
1
],
b
[
2
],
b
[
3
]);
19
20
return
0
;
21
}
22
23
/* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/