Logical operators
These operators are used to test or combine more
than one condition and such expressions are called as Logical or compound
Relational Expressions.
Operator
|
Meaning
|
example
|
Explanation
|
&&
|
Logical AND
|
(a<b)&&(c<d)
|
if two conditions are true then the only result is true otherwise false
|
||
|
Logical OR
|
(a<b)||(c<d)
|
if any one of condition is
true then the result is true otherwise false
|


06:42
Unknown

0 comments:
Post a Comment