ternary oparator cppp code example Example: ternary operator in c++ (n1 > n2) ? n1 : n2; OR n1 > n2 ? n1 : n2;