answersLogoWhite

0

Binary operators are the common ones like +, -, /, *, <, >, !=, etc.. These you use with two objects, like : 1 + 2 Unary are the ones that does not need another object, like : ++, +, --, -, ! Like var a = 5; // Not this. this is a assignment a++; //Increment a in one ++a; //Increment a in one a--; // Decrement a in one --a; // Decrement a in one !a; // Logical opposite of a +a; // Positive value of a -a; // Negative value of a

User Avatar

Wiki User

17y ago

What else can I help you with?

Related Questions

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.


Unary and binary operators in relational Algebra?

The nnary and Binary operators in relational Algebra.


What are urinary operators?

I suppose you wanted to ask about unary operators.Unary operators accept one operand, in oppose to binary operators, which accept two.Examples to unary operators are:f(x) = -xf(x)= abs(x)f(x) = sin(x)


What operators work differently when placed before rather than after an operand?

unary operators like ++,--


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.


Rewrite the BNF of Example 3.4 to add the and -- unary operators of Java?

123


What operator is a unary operator as it works with only one operand?

Yes, a unary operator is an operator that only has one operand. Examples of unary operators are negative (-), positive (+), increment (++), decrement (--), address of (&amp;), dereference (*), logical not (!), sizeof, one's complement (~), new, and delete.


What is unary minus operator?

No. The subtraction operator is a binary operator that returns the result of subtracting the rhs operand from the lhs operand. The unary minus operator simply negates the rhs operand. int x = -5; // unary minus. x is (-5) int y = -x; // unary minus. y is (+5) y -= x; // binary minus/assign operator. y is (+10) --x; // unary decrement operator. x is (-6) y -= (-x); // binary minus/assign and unary minus operators. y is(+4)


Explain the categories of PHP Operators in web technology?

There are arithmetic operators (+, -, %, ++, etc.), comparison operators (&lt;, ==, &gt;=, !=, etc.), logical operators (&amp;&amp;, !, , etc.), assignment operators (=, *=, %=, +=, etc.), conditional operator (?:). The order of operations is unary (!, ++, --), multiplicative (left to right; *, /, %), additive (left to right; +, -), relational (left to right; &lt;, &lt;=, &gt;, &gt;=), equality (left to right; ==, !=), logical and (left to right; &amp;&amp;, and), logical or (left to right; , or), conditional (?:), assignment.


What is unary mening?

'not' for instance is a unary operator. It is unary in the sense that it operates on a single item. In contrast a binary operator such as addition operates on two items.


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 */


What distinguishes operators from other sort of functions?

Operators are a specific type of function that perform actions on operands, often involving mathematical or logical manipulation. Unlike general functions, which can simply map inputs to outputs, operators typically denote an operation (such as addition, subtraction, or logical conjunction) and can be unary (taking one operand) or binary (taking two operands). Additionally, operators often have specific syntax and precedence rules that dictate how they interact with each other in expressions.

Trending Questions
What is the present perfect tense of invented? What is precast concrete panel? How do you function help to reduce the size of program in C? Is it better to be a B1 or a B2 aircraft maintenance engineer? What is the name of a logic gate that will invert a signal from a 0 to a 1 when added to a circuit? What is techniques can be used to solve the shortage of human resource? Do 5v regulators always get hot? What will robots be like in the future? What is a multicellular organism that carries a specific genetic change in each cell because of an intervention at the fertilized egg stage? Do clones live long? A separation process may be classified as rate governed or phase equilibrium based what do these have in common and what are their differences? How do you write a program in c plus plus language to draw a precedence diagram for assembly? How would the determination of bulk specific gravity of fine aggregate affected by the 500gm sample being drier than the surface-dry condition Explain that the aggregate? Why does asphalt get hot? Draw the symbol for On delay times contacts and Off delay timer contacts and explain how each operates? Why is it not good fire safety practice to install an electrical transformer in the open on a factory floor or against a building where windows face into the transformer enclosure? How do you adjust the harman p68 low draft voltage? What objects work with dc current? When should you use level C personal protection? Where did the computer originate and what advancements have been made in the improvement of the computer functions?