Computer Science, asked by purnimapolimari5684, 1 year ago

What are arithmetic operators in c++ distinguish between unary and binary operators?

Answers

Answered by shivam9238
2
Binary operator requires two operandsand Unary operator requires oneoperand. Here, in -5, the minus sign is unary operator and it requires oneoperand which is 5 here. The minus sign between 5 and 6 is binary operator which requires two operands(-5 and 6 here). The minus sign in -11 is also unary operator.
Similar questions