Computer Science, asked by tirtharaj6hsia, 8 months ago

difference between conditionaloperator and if else statement​

Answers

Answered by abinajasmine03
2

Answer:

Answer:The difference is the ternary operator is an expression where as an if-then-else is a statement. The basic difference is an expression returns a value and a statement doesn't so the ternary operator can be used in places that an if statement can't

Similar questions