diff options
Diffstat (limited to 'increment-tests.cpp')
-rw-r--r-- | increment-tests.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
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 <iostream> + +/* + * + * + * + * + */ + +int main () { + + int i = 0; + int j = 0; + int k = 0; + j = ++i; + k = i++; + std::cout << i << " " << j << " " << k << std::endl; + return 0; +} |