define the ternary operator and give a code example for it? in c++ Example: c++ ternary operator <condition> ? <true-case-code> : <false-case-code>;