Relational Operator:
- Used to perform the comparisons.
- Very helpful in decision making.
- For instance, a decision such as “If the traffic signal is red, stop the car” involves a comparison for equality. You compare the color of the signal with a reference color, red, and if they are equal, you stop the car.
- This is precisely how comparisons work in C++. You can compare data values using two new sets of operators, namely relational and equality operators.
Relational Operators in C++:
Relational Operator - Learn C++ Programming Language |
0 Comments