diff options
author | Adam NAILI | 2018-06-06 01:23:00 +0200 |
---|---|---|
committer | Adam NAILI | 2018-06-06 01:23:00 +0200 |
commit | aa16ecbb7e3a3dbd9ecc5c3d5e12f7c96a41974f (patch) | |
tree | 191ee8057f63f17f8677cee4ad290fd010b0050d /res | |
parent | 28c8d2c07a2dd8140da5ca6464c0eb8887624f34 (diff) | |
download | tpc-compiler-aa16ecbb7e3a3dbd9ecc5c3d5e12f7c96a41974f.tar.gz |
Array management
Diffstat (limited to 'res')
-rw-r--r-- | res/test_array.tpc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/res/test_array.tpc b/res/test_array.tpc new file mode 100644 index 0000000..a968c22 --- /dev/null +++ b/res/test_array.tpc | |||
@@ -0,0 +1,10 @@ | |||
1 | entier tab[5]; | ||
2 | |||
3 | entier main(void) { | ||
4 | tab[1]=3; | ||
5 | tab[2]=22; | ||
6 | print(tab[2]+tab[1]); | ||
7 | print(tab[1]); | ||
8 | print(tab[2]); | ||
9 | return 0; | ||
10 | } | ||