Advertisements
Advertisements
प्रश्न
What is the difference between operator in mathematics and logic?
अंतर स्पष्ट करें
Advertisements
उत्तर
| Basis of Difference | Mathematical Operator | Logical/Boolean Operator |
|---|---|---|
| Operands | Usually operates on numerical quantities | Operates on Boolean values 0 and 1 |
| Main operations | Addition, subtraction, multiplication and division | AND, OR and NOT |
| Result | May be any numerical value | Always 0 or 1 |
| Inverse | Additive and multiplicative inverses generally exist | Logical subtraction and division are not defined |
| Example | [2 + 3 = 5] | [1 + 0 = 1] in Boolean OR |
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
