summaryrefslogtreecommitdiff
path: root/2p20.cpp
diff options
context:
space:
mode:
Diffstat (limited to '2p20.cpp')
-rw-r--r--2p20.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/2p20.cpp b/2p20.cpp
new file mode 100644
index 0000000..6e85ad8
--- /dev/null
+++ b/2p20.cpp
@@ -0,0 +1,20 @@
+#include <iostream>
+#include "sales_item.hpp"
+
+/*
+ *
+ * 2.20
+ *
+ *
+ */
+
+int main () {
+
+ int i = 42;
+ int *p = &i;
+ *p = *p * *p; // Same as i = i * i;
+ std::cout << "i: " << i
+ << "\n*p: " << *p << std::endl;
+
+ return 0;
+}