Computer Science, asked by mankhush1043, 5 months ago

State two points of distinction between if-else and conditional operator.​

Answers

Answered by Itzkrushika156
4

Explanation:

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.

Answered by Rizakhan678540
1

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