Unit - 3
Unit - 3
Unit - 3
C Language
Generally these operators are used for checking condition or with if....else
statement & looping statements in C programs. The logical or conditional
statement expression is either return True or False, and False is considered
as 0 and True as a 1.
Operator Name
&& AND
|| OR
! NOT
For example:
Expression a=a+1 or a+=1 or a++
B=b-1 or b-=1 or b—
Hierarchy of Operations
While executing an arithmetic statement, which has two or more
operators, we may have some problems as to how exactly does it get
executed.
Expressions: