Find the difference between logical and relational operator.
Answers
Answered by
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...
thanks mate...
neha877:
are u captain of school
Answered by
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