summaryrefslogtreecommitdiff
path: root/4p14.cpp
diff options
context:
space:
mode:
Diffstat (limited to '4p14.cpp')
-rw-r--r--4p14.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/4p14.cpp b/4p14.cpp
new file mode 100644
index 0000000..84fe963
--- /dev/null
+++ b/4p14.cpp
@@ -0,0 +1,21 @@
+#include <iostream>
+
+/*
+ *
+ * 4.14
+ *
+ *
+ */
+
+int main () {
+
+ int i = 0;
+
+ //if(42 = i) {} Not valid, error
+ int ifs2 = i = 42;
+ if(ifs2) { // evaluates as true because nonZero == true
+ std::cout << "..." << std::endl;
+ }
+
+ return 0;
+}