Search This Blog

Thursday, 14 March 2013

Logical Operators in c


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

0 comments:

Post a Comment

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Hostgator Discount Code