Arithmetic Operator


Addition

15

Subtraction

5

Multiplication

150

Division

10

Modulus

5

Exponentiation

8

Assignment Operator


+=Operator(addition)

value of a before assign +=10
value of a after Assign +=19

-=Operator(subtraction)
value of a before assign -=10
value of a after Assign -=1

*=Operator(multiplication)
value of a before assign *=10
value of a after Assign *=90

/=Operator(division)
value of a before assign /=10
value of a after Assign /=5

%=Operator(modulus)
value of a before assign %=10
value of a after Assign %=1

Compararison Operator


Equal

cheak vlaue of 10 same as 10
bool(true)

Identical

cheak vlaue of 10 same as an same type of 10
bool(false)

Not Equal

cheak vlaue of 10 not equal to 7
bool(true)
cheak vlaue of 10 not equal to 7
bool(true)

Not Identical

cheak vlaue of 10 not Identical to 7
bool(true)

Greater Than

cheak vlaue of 20 Greater than to 7
bool(true)

Less Than

cheak vlaue of20Less than 7
bool(false)

Greater Than Equal

cheak vlaue of 20 Greater than or equal to 7
bool(true)

Less Than Equal

cheak vlaue of 20 less than or equal to 7
bool(false)

Increment/Decrement Operator


Pre-increment


value of a before pre-increment 11
value of a after pre-increment 11

Post-increment


value of a before post-increment 11
value of a after post-increment 10

Pre-decrement


value of a before pre-decrement 4
value of a after pre-decrement 4

Post-decrement


value of a before post-decrement 4
value of a after post-decrement 5

Logical Operator

And &&

55
bool(true)

Or ||

0
bool(true)

Not !

bool(true)

Xor

bool(true)

Ternary

100

Ternary

20