Operator: – Operator are used in visual basic programming for expression there are two types of expression used in programming they are called arithmetic expression and logical expression.
In both arithmetic and logical expression, there are two types of component are mainly in use. They are called operator and operands. Operands may be a variable or a constant. While operators are symbolic constant. The operators can be classified into two different categories. They are arithmetic operator and logic operator.
Arithmetic operator: – The arithmetic operator are used for various operators are used for various type of mathematical expression. The arithmetic operator are –
Symbol |
Meaning |
^ | Caret (Exponentiation) |
* | Asterisk (Multiplication) |
/ | Slash (Division) |
Mode | Modulo Division (Reminder after division) |
+ | Plus (Addition) |
– | Minus (Subtraction) |
Logical operator: – Logical operator are used in visual basic programming for comparison. Logical operator are –
Symbol |
Meaning |
> | Greater than |
< | Less than |
= | Equal to |
>= | Greater than or equal to |
<= | Less than or equal to |
<> | Not equal to |
AND | Logical AND |
OR | Logical OR |
NOT | Logical NOT |