summaryrefslogtreecommitdiff
path: root/6p11.cpp
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-09-06 10:33:29 +0200
committerOskar <[email protected]>2024-09-06 10:33:29 +0200
commit60789ab73d4987068114b0342e71a63f81f65c68 (patch)
tree2e62dc062e9db9a704c0cf69824259e4599119b0 /6p11.cpp
parent689b333897de2197e5d6f65c4e7de62cf68334ff (diff)
more
Diffstat (limited to '6p11.cpp')
-rw-r--r--6p11.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/6p11.cpp b/6p11.cpp
new file mode 100644
index 0000000..6e37076
--- /dev/null
+++ b/6p11.cpp
@@ -0,0 +1,22 @@
+#include <iostream>
+
+/*
+ *
+ * 6.11
+ *
+ *
+ */
+
+void resettozero(int &i) {
+
+ i = 0;
+}
+
+int main () {
+
+ int i = 2132;
+ std::cout << i << std::endl;
+ resettozero(i);
+ std::cout << i << std::endl;
+ return 0;
+}