diff options
Diffstat (limited to '4p33.cpp')
-rw-r--r-- | 4p33.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -4,7 +4,7 @@ * * 4.33 * - * + * Wow this might have been the trickiest question ever. I'm still not even sure if i totally get it! */ int main () { @@ -13,11 +13,9 @@ int main () { int res; int x = 1; int y = 1; - // (sameValue ? (++x, ++y) : --x), --y - res = someValue ? ++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; } |