answersLogoWhite

0

The quality operator and the assignment operator are binary operators; they have two operands, one on either side of the operator.

The equality operator is a Boolean operator which compares the two operands, returning true if they have the same logical state, otherwise false.

E.g., x==y returns true if x and y have the same logical state, otherwise false. The operator is commutative, such that x==y is the same as y==x.

The assignment operator sets the value of the left operand to that of the right operand, such that they both have the same logical state. After assignment, the left operand is returned.

E.g., x=y returns x while y=x returns y. After the assignment, x==y must be true.

User Avatar

Wiki User

10y ago

What else can I help you with?

Continue Learning about Engineering

What is the difference between you equals 10 and you equals equals 10 in c language?

The = operator is the assignment operator. The == operator is the equality or equals operator. The = operator is the assignment operator. We use it to assign a value (the right hand operand) to an object (the left hand operand). The value must be of the same type as the object unless the value can implicitly convert to the object's type. If not, we must explicitly cast the value to the appropriate type. The operator evaluates to the value of the object after assignment, thus creating a temporary value that can be used in other expressions. Examples: int you; you = 10; // assign the value 10 to the object named 'you' int me, you; me = 10; you = 10; Note that the second example can also be written: int me, you; me = you = 10; This is because the expression 'you = 10' evaluates to the temporary value 10 (the value of 'you' after assignment) which we then assign to 'me'. Operators are evaluated according to operator precedence, and assignment 'chains' like this are always evaluated from right to left. The == operator is the equality or equals operator. We use it to determine if two object's have the same value. If so, the expression evaluates true, otherwise false. Operators that evaluate true or false are known as Boolean operators (functions that return true or false are known as predicates). Typically we use the == operator in conditional expressions: if (a == b) { // code to execute when the value of a is equal to the value of b } else { // code to execute when the value of a is not equal to the value of b } while (a == b) { // This code will loop repeatedly so long as a is equal to b at the beginning of each iteration } The == operator is one of six Boolean operators that can be used to compare object values: == : equal != : not equal < : less than <= : less than or equal > : greater than >= : greater than or equal


What is the difference between a techniy equals tion and a technologist?

No one knows except for alien's. :)


Is x plus equals y is post increment or pre increment?

The '+=' operator behaves like a pre increment operator.


What does equals equals mean in java?

operator to compare two objects. The simple "=" sign is used for assignment - assigning a value to a variable. Here are examples of the two: x = 15; // Assign the value 15 to the variable if (x == 10) ... // Compare variable "x" with some value


What character is used in an OR operator?

The logical OR operator in C and Java is the double vertical bar ().Example: if (s 0) do somethingThe operator applies a logical OR operator when it evaluates the expression.

Related Questions

Difference between equals equals and equal in java?

"==" in java is the binary operator which compares two values and gives a boolean result While "=" in java is a assignment operator which assigns a value to a variable.


What is the difference between you equals 10 and you equals equals 10 in c language?

The = operator is the assignment operator. The == operator is the equality or equals operator. The = operator is the assignment operator. We use it to assign a value (the right hand operand) to an object (the left hand operand). The value must be of the same type as the object unless the value can implicitly convert to the object's type. If not, we must explicitly cast the value to the appropriate type. The operator evaluates to the value of the object after assignment, thus creating a temporary value that can be used in other expressions. Examples: int you; you = 10; // assign the value 10 to the object named 'you' int me, you; me = 10; you = 10; Note that the second example can also be written: int me, you; me = you = 10; This is because the expression 'you = 10' evaluates to the temporary value 10 (the value of 'you' after assignment) which we then assign to 'me'. Operators are evaluated according to operator precedence, and assignment 'chains' like this are always evaluated from right to left. The == operator is the equality or equals operator. We use it to determine if two object's have the same value. If so, the expression evaluates true, otherwise false. Operators that evaluate true or false are known as Boolean operators (functions that return true or false are known as predicates). Typically we use the == operator in conditional expressions: if (a == b) { // code to execute when the value of a is equal to the value of b } else { // code to execute when the value of a is not equal to the value of b } while (a == b) { // This code will loop repeatedly so long as a is equal to b at the beginning of each iteration } The == operator is one of six Boolean operators that can be used to compare object values: == : equal != : not equal < : less than <= : less than or equal > : greater than >= : greater than or equal


What is difference between X equals 5 and X equals equals 5 in c?

x = 5; is an assignment statement that assigns 5 to x. x = = 5; is a syntax error that fails to compile, missing an expression on the second equals sign.


What is difference between equals and equals equals operators?

The equals operator is used for assigning a value to a variable. ex String name = "efu"; the equals equals operator is used for comparaing if the given value is equal to another value which is assigned for a variable. ex int i = 0; int j = 5; if( i == 0){ System.out.println(j+"can't be divided by"+i); }else{ System.out.println("answer is " +j/i); }


What is the difference between ' equals equals ' and ' equals equals equals?

one equals


What is the difference between a equals equals 0 and a equals 0?

One equals is used in an equation which is true, such as 5 + 3 = 8 Equals equals is used in computer programming as a question as to whether 2 things are equal. Like If x == 4 perform this operation ... If you are referring to 'C' language programming: A single equal sign is an assignment, a double equal sign is a comparison. a = 7; /* An assignment. You are assigning the value of 7 to the variable called 'a' */ if (a == 7) /* A comparison. You are checking if the variable 'a' has the value of 7 */


What is the difference between 32volt's equals 940MA and 32volt's equals 375MA?

There is no difference. The statements are equally false.


If x equals 2 and y equals 8 what is the difference?

To find the difference between two numbers, subtract them.


What is the difference between equals 0 and equals NULL?

NULL is for pointers, 0, for numbers


What is difference between torque at Nm equals 120 rpm equals 1800 and Nm equals 120 rpm equals 4000 give detail better as performance and load capacity in petrol engine?

Difference between Torque and load


What is the difference between x equals 3 and x equals equals 3?

The second would suggest that x equals the string "=3".


What is the difference between the values of y when x equals 99 and x equals 100?

There is no way to know unless you had an equation that gives the relationship between x and y. For example, if y=2x, then when x equals 99 or x equals 100, then the value of y has a difference of 2.