Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
49 views

Assignment Operators: Op Era Tor Meaning / % + - &

The document describes various assignment operators in programming languages and their meanings. Assignment operators are used to assign values to variables and objects and perform operations like multiplication, division, addition, subtraction etc on the first operand and assign the result to the first operand.

Uploaded by

naveen reddy
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views

Assignment Operators: Op Era Tor Meaning / % + - &

The document describes various assignment operators in programming languages and their meanings. Assignment operators are used to assign values to variables and objects and perform operations like multiplication, division, addition, subtraction etc on the first operand and assign the result to the first operand.

Uploaded by

naveen reddy
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Assignment Operators

Op
era
tor
Meaning
= Store the value of the second operand in the object specified by the first operand (simple assignment).
*=
Multiply the value of the first operand by the value of the second operand; store the result in the object
specified by the first operand.
/=
Divide the value of the first operand by the value of the second operand; store the result in the object
specified by the first operand.
%=
Take modulus of the first operand specified by the value of the second operand; store the result in the
object specified by the first operand.
+=
dd the value of the second operand to the value of the first operand; store the result in the object
specified by the first operand.
=
Subtract the value of the second operand from the value of the first operand; store the result in the object
specified by the first operand.
<<
=
Shift the value of the first operand left the number of bits specified by the value of the second operand;
store the result in the object specified by the first operand.
>>
=
Shift the value of the first operand right the number of bits specified by the value of the second operand;
store the result in the object specified by the first operand.
&=
!btain the bit"ise #D of the first and second operands; store the result in the object specified by the first
operand.
^=
!btain the bit"ise e$clusive !% of the first and second operands; store the result in the object specified by
the first operand.
|=
!btain the bit"ise inclusive !% of the first and second operands; store the result in the object specified by
the first operand.
Design and simulate your o"n fu&&y setpoint controller

You might also like