aboutsummaryrefslogtreecommitdiffstats
path: root/RawMemory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'RawMemory.cpp')
-rw-r--r--RawMemory.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/RawMemory.cpp b/RawMemory.cpp
new file mode 100644
index 0000000..f6247f6
--- /dev/null
+++ b/RawMemory.cpp
@@ -0,0 +1,14 @@
+#include <iostream>
+#include <string>
+
+using namespace std;
+
+int main() {
+ int a = 15;
+ int* point = &a;
+
+ cout << "a: " << a << ", &a: " << &a << ", point: "
+ << point << ", &point: " << &point << ", *point: " <<
+ *point << endl;
+
+} \ No newline at end of file