Logical operator :
Logical Operators are used when we want to test more than one condition and make decisions. here the operands can be constants, variables and expressions.Logical operators are &&, ||, !
Eg: a > b && x = = 10
Logical or compound relational Expression
Truth Table && ||, !
OP1 OP2 OP1&OP2 OP1||OP2 OP !
1 1 1 1 0 1
1 0 0 1 1 0
0 1 0 1
0 0 0 0
0 comments:
Post a Comment