4. These are the operators which are operators which are used to
perform mathematical calculation like add, subtract, multiply and
division.
Symbols Operation Example precedence
+ Addition A+B Lowest
- Subtraction A-b Lowest
* Multiplicati
on
A*b Highest
/ Division a/b Highest
% Module or
reminder
A%b Highest
5. A relational operator is an operator which is
used to compose two values and result of
such operation is always true or false.
Operator operations
> Greater then
< Less then
>= Greater then equal to
< = Less then equal to
= = Equal to
7. General form :-
Identifier = Expression
for example : a =10 ;
The other assignment operator are +=,-=,*=.
8. A ) unary minus(-)
B) increment and decrement operator (++ & --)
C) address operator (&)
D) value at address operator (*)
E) NOT or Negative Operator (!)
F) Size of operator [size of ( )]
9. It can help the programmer in performing
simple conditional operations. It is also called as
ternary operator because it operate on these
values .
10. Operator Operations
<< Left shift of bits
>> Right shift of bit
~ Once compliment
& Bit wise and
~^ Bit wise x or
! Bit wise or
11. It is basically used to group the selected
statement or expression. If a least of
expression are separated by comma (c)
language assume this list as a single
statement.
for example : a=b, b=c,c=a+b;