summaryrefslogtreecommitdiff
path: root/5p15.cpp
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-08-30 18:32:44 +0200
committerOskar <[email protected]>2024-08-30 18:32:44 +0200
commit8f54ef4d7e1c112e6dde2947a6a9a27c8393f899 (patch)
treeb03a37618329a3a00976028e702290596e2171d7 /5p15.cpp
parent2952047fe741ca5b3717e066e0a6aeac699ee4c1 (diff)
more
Diffstat (limited to '5p15.cpp')
-rw-r--r--5p15.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/5p15.cpp b/5p15.cpp
new file mode 100644
index 0000000..4b9abd4
--- /dev/null
+++ b/5p15.cpp
@@ -0,0 +1,26 @@
+
+/*
+ *
+ * 5.15
+ *
+ *
+ */
+
+int main () {
+
+ /* Corrected versions
+
+ (a)
+ int ix = 0;
+ for ( ; ix != sz ; ++ix) {}
+ if (ix != sz)
+
+ (b)
+ int ix = 0;
+ for ( ; ix != sz ; ++ix) {}
+
+ (c)
+ for (int ix = 0 ; ix != sz ; ++ix) {}
+ */
+ return 0;
+}