From 19903ae3536255dfa2778846275267605cee9f7e Mon Sep 17 00:00:00 2001 From: Oskar Date: Sun, 18 Aug 2024 21:02:35 +0200 Subject: more exercises, one unfinished --- increment-tests.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 increment-tests.cpp (limited to 'increment-tests.cpp') diff --git a/increment-tests.cpp b/increment-tests.cpp new file mode 100644 index 0000000..d5b5665 --- /dev/null +++ b/increment-tests.cpp @@ -0,0 +1,19 @@ +#include + +/* + * + * + * + * + */ + +int main () { + + int i = 0; + int j = 0; + int k = 0; + j = ++i; + k = i++; + std::cout << i << " " << j << " " << k << std::endl; + return 0; +} -- cgit v1.2.3