cpp question mark operator code example Example: c++ question mark variable ? value if true : value if false;