Relational Operators
๐ป Relational Operators in C (Easy + Clear Explanation) In C (developed by Dennis Ritchie ), relational operators are used to compare two values ๐ ๐ The result is always: 1 → True ✅ 0 → False ❌ ๐น What are Relational Operators? ๐ค They are used to check conditions like: Equal or not Greater or smaller ๐ Mostly used in if conditions and loops ๐น Types of Relational Operators Operator Meaning Example Result == Equal to a == b True if equal != Not equal a != b True if not equal > Greater than a > b True if a is bigger < Less than a < b True if smaller >= Greater or equal a >= b True if ≥ <= Less or equal a <= b True if ≤ ๐น Examples of Each Operator #include <stdio.h> int main () { int a = 10 , b = 5 ; printf ( "%d\n" , a == b ); // 0 printf ( "%d\n" , a != b ); // 1 printf ( "%d\n" , a > b ); // 1 printf ( "%d\n" , a < b ); // 0 printf (...