!= Relational Operators in C, Checks if the values of two operands are equal or not. If values are not equal then the condition becomes true.
C Programming Language Operators and Enums in C Language (Article) Operators and Enums in C Language (Program)
1300Program:
#include"stdio.h" void main() { int a = 21; int b = 10; int c ; if( a != b ) { printf("a is not equal to b \n" ); } else { printf("a is equal to b \n" ); } }
Output:
a is not equal to b Press any key to continue . . .
This Particular section is dedicated to Programs only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.