Computer Science, asked by Vivekraj3788, 7 months ago

The if-else statement can be replaced by __________________

Answers

Answered by Charlesender1567
0

if can be replaced by whether

else can be replaced by instead

Answered by jenisha145
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