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?
1 Réponse
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.