0 like 0 dislike
43 views
in Computer Science by (1.0m points)
Define relational expression and relational operator. Discuss relational operators with examples

1 Answer

0 like 0 dislike
by (1.0m points)
Operator             Description                                                         Example

==                 Checks if the values of two operands are equal or not. If yes, then the condition becomes true.                                                                                                          (A == B) is not true.  

!=                   Checks if the values of two operands are equal or not. If values are not equal then the condition becomes true.                                                                       (A != B) is true.

>                    Checks if the value of left operand is greater than the value of right operand. If yes, then the condition becomes true.                                                      (A > B) is not true

<                    Checks if the value of left operand is less than the value of right operand. If yes, then the condition becomes true.                              (A < B) is true

>=                 Checks if the value of left operand is greater than or equal to the value of right operand. If yes, then the condition becomes true.                  (A >= B) is not true.

<=                      Checks if the value of left operand is less than or equal to the value of right operand. If yes, then the condition becomes true.                  (A <= B) is true.

Related questions

0 like 0 dislike
1 answer 22 views
0 like 0 dislike
1 answer 28 views
0 like 0 dislike
0 answers 19 views
0 like 0 dislike
1 answer 40 views
0 like 0 dislike
1 answer 32 views
0 like 0 dislike
0 answers 33 views
0 like 0 dislike
1 answer 25 views
0 like 0 dislike
1 answer 21 views
0 like 0 dislike
1 answer 26 views
Welcome to Free Homework Help, where you can ask questions and receive answers from other members of the community. Anybody can ask a question. Anybody can answer. The best answers are voted up and rise to the top. Join them; it only takes a minute: School, College, University, Academy Free Homework Help

19.4k questions

18.3k answers

8.7k comments

3.3k users

Free Hit Counters
...