aboutsummaryrefslogtreecommitdiff
path: root/l/arrays.lang
diff options
context:
space:
mode:
Diffstat (limited to 'l/arrays.lang')
-rw-r--r--l/arrays.lang7
1 files changed, 7 insertions, 0 deletions
diff --git a/l/arrays.lang b/l/arrays.lang
new file mode 100644
index 0000000..8cab05f
--- /dev/null
+++ b/l/arrays.lang
@@ -0,0 +1,7 @@
+func int main() {
+ int[] arr := new int[5];
+ arr[0] = 97;
+ arr[1] = 98;
+ putc(char(arr[0]));
+ return 0;
+}