Professional Documents
Culture Documents
Long
Long
Short
Unsigned
Signed
a=b=c=15
a+=15
Auto Incremenr/ Decrement Operators
These operators are ++, --,
The operator ++ adds 1
<=
AND &&
OR ||
NOT !
AND and OR operators allow two or more
conditions to be combined in if statement.
Not operator reverses the result of an
expression it operates on. The output is logical
value i.e. 0 or 1.
AND &
OR |
1s complement operator ~
XOR operator ^
Left shift operator <<
Right shift operator >>
Also called as Ternary Operator (?:)
Max=a>b?a:b
One Expression may contain different
operators
Precedence means the order in which the
operations are carried out for given
expression.
Associativity comes into picture when
operators of same priority comes into
expression.
printf(format specifier, variable list);
}
Syntax
while(condition)
{
statement1;
statement2;
}
Syntax
do
{ statement1;
Statement2;
} while(condition);
Syntax