Computer Science, asked by vgoodboi50, 2 days ago

. Explain the following
I) Ternary operator
ii) Relational operator
iii) unary and binary operators.​

Answers

Answered by carolmartinnadar
1

Answer:

1) The ternary operator is an operator that takes three arguments. The first argument is a comparison argument, the second is the result upon a true comparison, and the third is the result upon a false comparison. If it helps you can think of the operator as shortened way of writing an if-else statement.

2) a relational operator is a programming language construct or operator that tests or defines some kind of relation between two entities. These include numerical equality and inequalities

3) Unary operators perform an action with a single operand. Binary operators perform actions with two operands. Unary operators are arithmetic operators that perform an action on a single operand.

Explanation:

Mark me as the brainliest pls

Similar questions