+1 vote
in Technology by (323k points)

Select the incorrect operator form in the following list(== , <> , >= , <=) and what is the reason for the answer?

1 Answer

0 votes
by (323k points)
Incorrect operator is ‘<>’. This format is correct when writing conditional statements, but it is not the correct operation to indicate not equal in C programming. It gives a compilation error as follows.

Code:

#include <stdio.h>
 
int main () {
 
      if ( 5 <> 10 )
          printf( "test for <>" );
        return 0;
}
...