Stuart A. answered 08/27/26
Programmer with over 15 years of experience with the C++ language.
it compares a and b. It is the equivalent of NOT EQUAL. If the values are equal it evaluates as FALSE otherwise it evaluates to TRUE. It does not assign values.
common relational operators
< less than
> greater than
<= less than or equal to
>= greater than or equal to
== equal
!= not equal
see C# arithmetic, comparison, logical, and assignment operators - C# | Microsoft Learn for more information.