0

How do we write a program to illustrate constructors and destructors by passing unary and binary operators?

What are unary and binary operators. Are they ++ and + respectively?

11th Jul 2017, 10:32 AM
Sai Yerni Akhil
Sai Yerni Akhil - avatar
1 Answer
0
Unary Operators are the ones who affect a single operand, like ++ -- ~ - ! binary operators affect 2, like *, +, -, ... just pay attention that - can act as unary like this x = -7 (turns 7 into negative) and binary x = z - y And about your title, I didn't get what you mean, maybe you should wait for others.
11th Jul 2017, 12:59 PM
Ali Rashidi
Ali Rashidi - avatar