4) Logical Operater : A logical operater is used to perform a logical expressions of two given variables. It is used mainly in descion making in c programming.
OPERATER
|
DEFINITION OF OPERATER
|
|||
&&
|
(LOGICAL AND) If all the operands are true it is an AND Operater.
|
|||
||
|
(LOGICAL OR) If one operand is true it is an OR Operater.
|
|||
!!
|
(LOGICAL NOT) If all the operands are zero.It is a LOGICAL NOT Operater
|
OPERATER
|
DEFINITION OF OPERATER
|
>>
|
Shift Right
|
<<
|
Shift Left
|
&
|
Bitwise AND
|
|
|
Bitwise OR
|
^
|
Bitwise exclusive OR
|
~
|
Bitwise complement
|
Simple and useful
ReplyDeletethanks for the information....✌
ReplyDeleteVery nice
ReplyDeleteRaj
Informative.
ReplyDelete