Assignment operators

Domain Hosting image
Web Hosting
Dedicated server
ssl certificate
Web Design image
Email
Assignment operators are used to assign a value to variable. The value may be result of an expression or an operation performed on first operand itself. The following table gives a list of assignment operators with their descriptions:

= - The operand on the left is assigned with the value of the expression right

+= - The value of the expression on the right is evaluated first and the operand on the left is incremented by this value.

-= - The value of the expression on the right is evaluated first and the operand on the left is decremented by this value.

*= - The value of the expression on the right is evaluated first and the operand on the left is multiplied by this value.

/= - The value of the expression on the right is evaluated first and the operand on the left is divided by this value.

<<= The value of the expression on the right is evaluated first and the operand on the left is shifted left by this value .

>>= - The value of the expression on the right is evaluated first and then a signed right shift is performed on the operand in the left by this value

>>>= - The value of the expression on the right is evaluated first and then an unsigned right shift is performed on the operand in the left by this value .

&=- The value of the expression on the right is evaluated first and then a bitwise and is performed on the operand in the left by this value.

!= - The value of the expression on the right is evaluated first and then a bitwise or is performed on the operand in the left by this value.

^= - The value of the expression on the right is evaluated first and then a bitwise exclusive or is performed on the operand in the left by this value.



Domain Name Search

www.


Copyright (C) 2007. Web Domain design hosting. All rights reserved.