Which operator is used to check if two values are equal?

  • !=
  • =
  • ==
  • ===
In C, the '==' (double equals) operator is used to check if two values are equal. It is a comparison operator, while '=' is an assignment operator. Confusing these can lead to unintended consequences, making it crucial to understand their distinct purposes in programming.
Add your answer
Loading...

Leave a comment

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