if else in single line c++ and print code example Example: c++ short if (condition) ? (if_true) : (if_false)