Relational Operators in C language
A relational operator checks relation between two operands. it returns true(1) or false(0) Boolean value in result. these are binary operators.
เคเค เคฐिเคฒेเคถเคจเคฒ เคเคชเคฐेเคเคฐ เคฆो เคเคชเคฐेंเคก เคे เคฎเคง्เคฏ เคธเคฎ्เคฌเคจ्เคง เคी เคाँเค เคเคฐเคคा เคนै। เคฏเคน เคชเคฐिเคฃाเคฎ เคธ्เคตเคฐुเคช เคฌूเคฒिเคฏเคจ เคตैเคฒ्เคฏू 1 TRUE เคฏा 0 FALSE เคช्เคฐเคฆाเคจ เคเคฐเคคा เคนै। เคฏे เคฌाเคเคจเคฐी เคเคชเคฐेเคเคฐ เคนोเคคे เคนै।
Let variable A=10 and B=5
เคฎाเคจा เคि A=10 เคเคตं B=5
Following table represents operators,their description and example-
เคจिเคฎ्เคจ เคคाเคฒिเคा เคฎें เคเคชเคฐेเคเคฐ,เคเคธเคा เคธंเค्เคทिเคช्เคค เคตिเคตเคฐเคฃ เคเคตं เคเคฆाเคนเคฐเคฃ เคฆเคฐ्เคถाเค เคเค เคนै -
| Operator | Description | Example |
|---|---|---|
| == | Equality | (A == B) false |
| != | Inequality | (A != B) true |
| > | Greater than | (A > B) true |
| < | Lesser than | (A < B) false |
| >= | Greater than or Equal | (A >= B) true |
| <= | Lesser Than or Equal | (A <= B) false |
Comments
Post a Comment