English

What is the difference between assignment operator and equality operator?

Advertisements

Question

What is the difference between the assignment operator and the equality operator?

Short/Brief Note
Advertisements

Solution

Assignment Operator:
The assignment operator is used to assign the values to the variable.

Equality Operator:
The equality operator is used to compare the values of both the variables and the result is true or false.

shaalaa.com
Abstraction
  Is there an error in this question or solution?
Chapter 6: Specification and Abstraction - Evaluation - Section - C [Page 86]
Advertisements
Share
Notifications



      Forgot password?
Use app×