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
Turn on a implicit-function-declaration warning by default.
[tinycc.git]
/
tests
/
tests2
/
38_multiple_array_index.c
blob
4e1868efeaf746f9d11cb067eab69c42650479fa
1
#include <stdio.h>
2
3
int
main
()
4
{
5
int
a
[
4
][
4
];
6
int
b
=
0
;
7
int
x
;
8
int
y
;
9
10
for
(
x
=
0
;
x
<
4
;
x
++)
11
{
12
for
(
y
=
0
;
y
<
4
;
y
++)
13
{
14
b
++;
15
a
[
x
][
y
] =
b
;
16
}
17
}
18
19
for
(
x
=
0
;
x
<
4
;
x
++)
20
{
21
printf
(
"x=%d: "
,
x
);
22
for
(
y
=
0
;
y
<
4
;
y
++)
23
{
24
printf
(
"%d "
,
a
[
x
][
y
]);
25
}
26
printf
(
"
\n
"
);
27
}
28
29
return
0
;
30
}
31
32
/* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/