Question 89Asked in DSSSB PGT Computer Science (Technical), 11 Jul 2021

Which statement is NOT correct regarding ternary operator in C++?

  1. AIts symbol is?:
  2. BIt is also known as conditional operator
  3. COperator overloading is possible in it
  4. DIt is similar to if else
Show answerHide answer

Correct answer: (C) Operator overloading is possible in it

Explanation

The ternary operator ?: is one of the C++ operators that cannot be overloaded, along with ::, . and .*. The other statements about it are true.

From DSSSB PGT Computer Science PYQ (Technical), 11 Jul 2021

This is question 89 of DSSSB PGT Computer Science PYQ (Technical), 11 Jul 2021. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.