summaryrefslogtreecommitdiffstats
path: root/pointerWtf.c
diff options
context:
space:
mode:
Diffstat (limited to 'pointerWtf.c')
-rw-r--r--pointerWtf.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/pointerWtf.c b/pointerWtf.c
new file mode 100644
index 0000000..05738b1
--- /dev/null
+++ b/pointerWtf.c
@@ -0,0 +1,8 @@
+#include <stdio.h>
+
+int main() {
+ printf("%c\n", "ABCDEFG"[4]);
+ printf("%c\n", 4["ABCDEFG"]);
+ return 0;
+}
+