Computer Science, asked by dipankarrai4147, 9 months ago

What is the use of ""! ="" operator?

Answers

Answered by gavenpais
0
Arithmetic Operators are used to perform mathematical calculations. Assignment Operators are used to assign a value to a property or variable. Assignment Operators can be numeric, date, system, time, or text. Comparison Operators are used to perform comparisons. Concatenation Operators are used to combine strings.
Answered by Anonymous
0

The use of ! = is as follows:

  • This operator is known as " not equal " and it is used to check whether the  values of two operands are equal or not.
  • If the values of two operands are not equal then condition is true otherwise false.
  • This operator is a comparison operator.
  • The use of this operator can be understood by the code below :

int main( )

{

   int a = 5;

   int b = 3;

   cout << (x != y) ;

   return 0;

}

  • This code will return 1 (true) because 5 is not equal to 3.
Similar questions