answersLogoWhite

0

How unary minus can be overload in c plus plus?

Updated: 8/20/2019
User Avatar

Wiki User

11y ago

Best Answer

type operator- ();

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How unary minus can be overload in c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is plus operator is it unary or binary?

There is no unary plus in C, but if there were, it would have only one operand, unlike the binary plus which has two: x = a + b; /* binary plus */ x = + b; /* unary plus -- not in C*/ x = a - b; /* unary plus */ x = - b; /* unary minus */


Binary and unary function in C plus plus?

A binary function would be one with two parameters, a unary, one with one parameter.However, these words are usually used for operators. For example, the common arithmetic operators, +, -, *, /, % are binary - they need two operands, for example, "2 + 3". The minus sign can also be unary; -x is the additive inverse of x. Unary means one operand is required. Boolean operators for and, or, xor, are binary. Actually, the great majority of operators are binary.


What is the algebric answer to this 7C minus open bracket C plus 2 close bracket?

7C MINUS bracket open c plus 2 bracket close equals 7c minus c minus 2 equals 6c minus 2


What is average of A minus and B minus and B plus and B and C minus?

its B


Which is dummy operator in c?

In C, the sizeof operator can be considered a dummy operator because it does not perform any operations on the data but simply returns the size in bytes of a variable or a data type.


What is C in the equation -14 plus c plus 6 equals -5?

-14 + c + 6 = -5-14 + c = -5 minus 6-14 + c = -11c = -11 minus -14c = -11 plus 14c = 3


What is the operator that cannot be overloaded in c plus plus and java?

conditional operator , size of operator , membership operator and scope resulation operator can not be overload in c++


How do you factor c square minus 5c plus 6?

(c - 2)(c - 3)


What is the quadratic equasion?

If your Problem is organized like this: A x squared plus B x plus C, the equation is: (B plus or minus the square root of(B squared minus 4 A C)) over 2A


What is difference between binary and unary operator in c language?

The number of arguments will be one for the unary operators and two for the binary operators. In the case of unary operators, the argument must be of the same type as that of the enclosing class or structure.


Two hyphae from different mating types come together forming?

plus, minus strains C for plato


Which binomial is a factor of c squared minus 12c plus 32?

It is: (c-4)(c-8) when factored