

InterviewSolution
Saved Bookmarks
1. |
Explain Binary operator ? |
Answer» in a+b \'a\' and \'b\' are operands<br>operators which require two operands called binary operator. operands are the variables to which action or computation will applied.<br>We take the set of numbers on which the binary operations are performed as X. The operations (addition, subtraction, division, multiplication, etc.) can be generalised as a binary operation is performed on two elements (say\xa0a\xa0and\xa0b) from set X. The result of the operation on\xa0a\xa0and\xa0b\xa0is another element from the same set X.Thus, the binary operation can be defined as an operation * which is performed on a set A. The function is given by *: A * A → A. So the operation\xa0*\xa0performed on operands\xa0a\xa0and\xa0b\xa0is denoted by\xa0a * b. | |