|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
v |
Most
programming languages have more operators
|
|
|
than
a pocket calculator
|
|
|
|
o |
Operators
like + taking 2 operands are called binary: a + b
|
|
|
o |
Operators
like -
taking 1 operand are called unary: - a
|
|
|
v |
A
very useful operator is concatenate, &
in VB6,
|
|
|
which
connects two strings together:
|
|
|
|
o |
plural = “dog” & “s”
|
|
|
v |
The
relational operators are:
|
|
|
|
; |
a
< b
less than a > b greater than
|
|
|
|
; |
a
<= b less than or equal
to a >= b greater than or equal
|
|
|
|
; |
a
= b equal to a <> b not equal
|
|