C Language Tutorials by Ghulam Murtaza Dahar - HTML preview

PLEASE NOTE: This is an HTML preview only and some elements such as links or page numbers may be incorrect.
Download the book in PDF, ePub, Kindle for a complete version.

Operator

If c=5 and d=2 then,((c==5) && (d>5))

&&

Logial AND

returns false.

If c=5 and d=2 then, ((c==5) || (d>5))

||

Logical OR

returns true.

!

Logical NOT

If c=5 then, !(c==5) returns false.