diff options
Diffstat (limited to '4p33.cpp')
-rw-r--r-- | 4p33.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/4p33.cpp b/4p33.cpp new file mode 100644 index 0000000..fa4f199 --- /dev/null +++ b/4p33.cpp @@ -0,0 +1,23 @@ +#include <iostream> + +/* + * + * 4.33 + * + * + */ + +int main () { + + bool someValue = true; + int res; + int x = 1; + int y = 1; + // (sameValue ? (++x, ++y) : --x), --y + res = someValue ? ++x, ++y : --x, --y; + std::cout << res << " res"<< std::endl; + std::cout << x << " x" << std::endl; + std::cout << y << " y" << std::endl; + + return 0; +} |