Which operator is used to compare if two values are equal in C++? 

  • == 
  • === 
  • !=
In C++, the == operator is used for equality comparison. It checks if the values of two operands are equal. On the other hand, = is an assignment operator, === is not valid in C++, and != is the not-equal operator.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *