Next: Relational Operators
Up: Expressions and Assignment
Previous: Assignment
The following operators are valid for numeric expressions,
- ** exponentiation, dyadic operator, for example, 10**2, (evaluated right to left);
- * and / multiply and divide, dyadic operators, for
example, 10*7/4;
- + and - plus and minus or add and subtract, monadic and dyadic
operators, for
example, 10+7-4 and -3;
Can be applied to literals, constants, scalar
and array objects. The only restriction is that the RHS of **
must be scalar.
Example,
a = b - c
f = -3*6/5
For more information, click here
Now try this question
Next: Relational Operators
Up: Expressions and Assignment
Previous: Assignment
©University of Liverpool, 1997
Wed May 28 23:37:18 BST 1997Not for commercial use.