Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

0 like 0 dislike
asked May 12, 2018 in General by Tarunjaiswal (100 points)
<> is incorrect. While this operator is correctly interpreted as “not  equal to” in writing conditional statements, it is not the proper operator to be used in C programming. Instead, the operator  !=  must be used to indicate “not equal to” condition.

1 Answer

0 like 0 dislike
answered May 22, 2018 by MayankSingh (33 points)

<> is incorrect. While this operator is correctly interpreted as “not  equal to” in writing conditional statements, it is not the proper operator to be used in C programming. Instead, the operator  !=  must be used to indicate “not equal to” condition.

Make sure your Question & Answer should be appropriate and useful to the reader. Don't just copy and paste content from other sources.
...