Bitwise operators

If a=20 and b=5
OperatorDescription
"+"Addition Operator which adds 2 operands x=a+b=25
"-"Subtraction which gives difference between two operands
x=a-b=15
"*"Multiplication Operator which multiplies the two operands
x=a*b=100
"/"Division Operator.Divides two operands
x=a/b=4
"++"Increment Operator which increase the value of an operand by one
x=a++; where a++ means a=a+1
x=21
"--"Decrement Operator which decreases the value of an operand by 1
x=a--; where a-- means a=a-1;
x=19

Post a Comment

If you have any doubts, Please let me know
Thanks!

Previous Post Next Post