This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
zeekling
/
test_c
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
增加数组处理
master
ZEEKLING
4 months ago
parent
afa981134a
commit
68630dc53e
1 changed files
with
12 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+12
-0
c_expert/chapter3/test_array.c
+ 12
- 0
c_expert/chapter3/test_array.c
View File
@ -0,0 +1,12 @@
#
include
<stdio.h>
int
main
(
)
{
int
a
[
10
]
;
for
(
int
i
=
0
;
i
<
10
;
i
+
+
)
{
*
(
a
+
i
)
=
i
;
}
for
(
int
i
=
0
;
i
<
10
;
i
+
+
)
{
printf
(
"
a[%d] = %d
\n
"
,
i
,
*
(
a
+
i
)
)
;
}
return
0
;
}
Write
Preview
Loading…
Cancel
Save