summaryrefslogtreecommitdiff
path: root/6p38.cpp
diff options
context:
space:
mode:
Diffstat (limited to '6p38.cpp')
-rw-r--r--6p38.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/6p38.cpp b/6p38.cpp
new file mode 100644
index 0000000..978ee9f
--- /dev/null
+++ b/6p38.cpp
@@ -0,0 +1,18 @@
+#include <iostream>
+
+/*
+ *
+ * 6.38
+ *
+ *
+ */
+int odd[] = {1,3,5,7,9};
+int even[] = {0,2,4,6,8};
+auto arrPtr(int i) -> int (&)[5] {
+
+ return (i % 2) ? odd : even;
+}
+
+int main () {
+ return 0;
+}