I just learned that in C++ (but not C) the ternary operator can be used as an lvalue Posted on 2021/05/10 by Carl Robitaille I just learned that in C++ (but not C) the ternary operator can be used as an lvalue, so this is a valid expression that sets either a or b 2 to depending on if a is 0:((0 == a) ? a : b) = 2;I'm upset now.— Three corgis in a trenchcoat (@AreTillery) May 9, 2021