summaryrefslogtreecommitdiff
path: root/6p32.cpp
diff options
context:
space:
mode:
Diffstat (limited to '6p32.cpp')
-rw-r--r--6p32.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/6p32.cpp b/6p32.cpp
new file mode 100644
index 0000000..76d431c
--- /dev/null
+++ b/6p32.cpp
@@ -0,0 +1,18 @@
+#include <iostream>
+
+/*
+ *
+ * 6.32
+ *
+ *
+ */
+
+int &get(int *arry, int index) {
+ return arry[index];
+}
+
+int main() {
+ int ia[10];
+ for (int i = 0; i != 10; ++i)
+ get(ia, i) = i;
+}