2011/12/26C++ Leave a Comment Ternary operators in C++ as lvalues: (a == 0 ? a : b) = 1; which is shorthand for: if (a == 0) a = 1; else b = 1; Hidden Features of C++ Advertisement Share this:DiggRedditLike this:LikeBe the first to like this post. c++