aboutsummaryrefslogtreecommitdiffstats
path: root/C++/RawMemory.cpp
diff options
context:
space:
mode:
authorzedarider <ymherklotz@gmail.com>2016-02-26 21:15:09 +0000
committerzedarider <ymherklotz@gmail.com>2016-02-26 21:15:09 +0000
commitf7a1296d353dea1f98b47d4baef87426ceadf6b5 (patch)
treec4fc565b3e2f672647033d639601f695782f1562 /C++/RawMemory.cpp
parentc2d76b36f9f2ef70de599add53c08a38af3d1760 (diff)
downloadimperial_2015-f7a1296d353dea1f98b47d4baef87426ceadf6b5.tar.gz
imperial_2015-f7a1296d353dea1f98b47d4baef87426ceadf6b5.zip
Organising into folders
Diffstat (limited to 'C++/RawMemory.cpp')
-rw-r--r--C++/RawMemory.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/C++/RawMemory.cpp b/C++/RawMemory.cpp
new file mode 100644
index 0000000..f6247f6
--- /dev/null
+++ b/C++/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