66.9k views
2 votes
What is the advantage of using the conditional operator?

1 Answer

0 votes

Answer: Conditional operator are the ternary operator that work during a particular condition in which they returns a value as a result.This mechanism of the conditional operator helps in the making of the decision. The advantages of the conditional operator are as follows:-

  • It has faster execution
  • It can operate in many conditions even where the if-else condition is not executable
  • Compact in nature
  • Readable

User Zeflex
by
5.2k points