First page Back Continue Last page Graphics
Relational Expressions
Binary expressions
- Two operands (normally arithmetic expressions)
- Single relational operator
Value is either true or false.
Often used as test-expression in loop control.
Can just output them
- cout << ((2+3) < (4+1)) << endl;
- cout << ((8+1) > (2*3)) << endl;
- Practice: relational.cpp in inclass