The if-else statement can be replaced by __________________
Answers
Answered by
0
if can be replaced by whether
else can be replaced by instead
Answered by
1
The if-else statement can be replaced by conditional operator.
Explanation:
- Alternative name for such conditional operator is also known as ternary operator. Conditional statements are statements that make decisions based on the outcome of the expression.
- Because the conditional operator has three operands, it is called the ternary operator.
- The conditional operator behaves similarly to the 'if-else' expression because both are decision-making statements.
Similar questions
History,
4 months ago
Physics,
9 months ago
Physics,
1 year ago
English,
1 year ago
CBSE BOARD X,
1 year ago