summaryrefslogtreecommitdiff
path: root/2p21.cpp
diff options
context:
space:
mode:
Diffstat (limited to '2p21.cpp')
-rw-r--r--2p21.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/2p21.cpp b/2p21.cpp
new file mode 100644
index 0000000..746ce34
--- /dev/null
+++ b/2p21.cpp
@@ -0,0 +1,20 @@
+#include <iostream>
+#include "sales_item.hpp"
+
+/*
+ *
+ * 2.21
+ *
+ *
+ */
+
+int main () {
+
+ int i = 0;
+ //double *dp = &i; // Invalid
+ //int *ip = i; // Invalid
+ int *p = &i;
+ std::cout << i << " " << p << std::endl;
+
+ return 0;
+}