Computer Science, asked by PragyaTbia, 1 year ago

Find the difference between logical and relational operator.

Answers

Answered by sadhya15
51
The difference between logical and relational operator is that relational operator can have any operand value and return boolean while logical always have boolean...............
thanks mate...

neha877: are u captain of school
neha877: yaa
lokendra57: Hi how are you
lokendra57: Hi sandhya
lokendra57: Iam your friend iam a boy
Answered by amaan88
65

Relational operators are used to compare the values of two expressions. Relational operators are binary operators because they require two operands to operate.

Example:

1. < : less than

2. <= : less than or equal to

3. > : greater than

4. > =: greater than or equal to

5. == : equal to

6. /= : not equal to

Logical operators are typically used with Boolean values. You can combine relational operators using logical operators.

Example:

1. Logical AND (&&)

2. Logical OR (||)

3. Logical NOT (!)

Similar questions