Example of Logical Operators in c programming Language

C Programming Language / Operators and Enums in C Language

1077

Program:

#include <stdio.h>
int main() {
	int a,b;
	a = 5;
	b = 8;
	printf("%d \n",a>b && a!=b);
	printf("%d \n",!(a>=b));
	printf("%d \n",a==b || a>b);
	return 0;
}

Output:

0
1
0
Press any key to continue . . .

Explanation:


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.