From 8f54ef4d7e1c112e6dde2947a6a9a27c8393f899 Mon Sep 17 00:00:00 2001 From: Oskar Date: Fri, 30 Aug 2024 18:32:44 +0200 Subject: more --- 5p15.cpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 5p15.cpp (limited to '5p15.cpp') 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; +} -- cgit v1.2.3