Computer Science, asked by swapnendu68, 1 year ago

difference between '=' and '==' ​

Answers

Answered by k23
0

= is the assignment operator while == is the comparison operator

Answered by QueenOfKnowledge
0
  • The '=' is the so-called assignment operator and is used to assign the result of the expression on the right side of the operator to the variable on the left side.

  • The '==' is the so-called equality comparison operator and is used to check whether the two expressions on both sides are equal or not. It returns true of they are equal, and false if they are not.
Similar questions