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