1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 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; }