Default
Google

Operators: Comparison Operators

Applies To: C++Builder 1 or higher
Category: C++ Language

Relational operators are used to compare expressions and return true or false results:
 
==: equal to
!=: not equal to
> : greater than
>=: greater than or equal to
< : less than
<=: less than or equal to
 
Logical operators are used to evaluate more than one relational expressions:
 
&&: and
||: or
! : not
 
For example:
 
if(x == 10 && y < 3)

C++Builder Developer's Network
Copyright © Yoto Yotov



Acquiring image from ProHosting Banner Exchange