QUESTION IMAGE
Question
question: 13
what is the difference between a binary operator and a unary operator?
a computer can use binary operators, but it cannot use unary operators.
a unary operator needs two things, while a binary operator only needs one.
a binary operator needs two things, while a unary operator only needs one.
binary operators are used for arithmetic expressions, while unary operators are for strings.
A binary operator, like \(+\) in \(a + b\), acts on two operands. A unary operator, such as the negative sign in \(-x\), acts on one operand. Option C correctly states this difference. Option A is wrong as computers use both. Option B has the definitions reversed. Option D is incorrect as both can be used in arithmetic (e.g., unary \(-\) for negation in arithmetic).
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
C. A binary operator needs two things, while a unary operator only needs one.