Friday, 30 August 2013

Logical operator | C Programming Language Tutorial pdf



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

 

C Programming Language Interview Questions and Answers Tutorial for beginners. Copyright 2013 All Rights Reserved