difference between conditionaloperator and if else statement
Answers
Answered by
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
English,
4 months ago
Social Sciences,
4 months ago
English,
4 months ago
Science,
8 months ago
Computer Science,
1 year ago
Social Sciences,
1 year ago