Computer Science, asked by dharmaveerasari, 5 months ago

Differentiate between = and == operator​

Answers

Answered by rkulkarniv81
3

Explanation:

Conclusion. So it's cleared now, ,both are not same, = is an Assignment Operator it is used to assign the value of variable or expression, while == is an Equal to Operator and it is a relation operator used for comparison (to compare value of both left and right side operands).

Answered by vidhyabarud
8

= Operator

The Assignment operator ( = ) is used to assign values to a variable/ constant. The variables are always on the left side of the assignment operator and the value to be assigned is always on the right side of the Assignment operators.

== Operator

The == operator is a Relational Operator ( ie.used to test the relation between two variables ) A relational expression returns either True or False ( Boolean Result ). This operator is used to check the equality between two operands.

Hope Helps You ✌️

Please mark as the Brainliest !!!!

Similar questions