answersLogoWhite

0


Best Answer

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.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is difference between binary and unary operator in c language?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between unary and binary?

In programming a unary and binary operator defines how many components make up an expression.


Give me the answer Difference between unary and binary operator?

A unary operator is one which operates on just one number, e.g. x2 or -x. A binary operator is one which takes two numbers, e.g. x + y or xy. Note that this has nothing to do with binary vs. decimal arithmetic. This term is commonly used to distinguish between the two buttons which have a '-' sign on a calculator. The unary '-' operator button is used to change the sign of a number entered, and the binary '-' operator button is used to subtract two numbers, which is quite a different thing. The unary '-' button is commonly labelled '+/-'.


Difference between equals equals and equal in java?

"==" in java is the binary operator which compares two values and gives a boolean result While "=" in java is a assignment operator which assigns a value to a variable.


What is a binary operator in the C language?

In programming languages, a binary operator is an operator which takes two operands. For example, the divide-by sign between divident and divisor is a binary operator:x = a / bOther binary operators include + - * & | ^, among others.Note that the operator is binary, not the character representing it. Take, for example, the minus sign. The minus sign represents the binary subtraction operator when used between two arithmetic expressions (e.g. x = a - b). However, when used left of an arithmetic expression, it indicates a negative sign (e.g. x = -a). Parentheses may be required to avoid ambiguity or enhance readibility of both effects are combined (e.g. x = a - (-b)).


Explain the Difference between bitwise operator ' and ' and address operator ' and ' of pointer?

The bitwise logical operator and (&) calculates the bitwise logical and of two integral values. It is a binary operator.The address of (&) operator returns the address of the value to its right. It is a unary operator.The distinction between the two is one of context. The logical and operator will follow (and be preceeded by) a value, while the address of operator will follow an operator.


What is a binary operation?

A binary operator is simply an operator that works with two operands (for example, two numbers). The binary operator is usually written between the two operands. Examples include the familiar operations of addition, subtraction, multiplication, or division - for example, in: 2 + 3 the "plus" is the binary operator, which works on the two numbers written on either side of it. What is an operator: Basically a function (calculation rule), written in a special way.


What is the difference between 2 and 10?

2 is decimal format in computer language. 2 can be represented as 10 in binary format.


What is binary operation?

A binary operator is simply an operator that works with two operands (for example, two numbers). The binary operator is usually written between the two operands. Examples include the familiar operations of addition, subtraction, multiplication, or division - for example, in: 2 + 3 the "plus" is the binary operator, which works on the two numbers written on either side of it. What is an operator: Basically a function (calculation rule), written in a special way.


What is 4 more than the difference of 12?

Difference is a binary operator. That means it needs two numbers not just one, as in the question. You need "... difference of 12 and ..."


What is difference between binary tree?

fish!


How do you find the product of 16?

"Product" is a binary operator. A binary operator takes two numbers as input and combines them into an output. Your question gives only one number as input and so a sensible answer is impossible. "Product" is a binary operator. A binary operator takes two numbers as input and combines them into an output. Your question gives only one number as input and so a sensible answer is impossible. "Product" is a binary operator. A binary operator takes two numbers as input and combines them into an output. Your question gives only one number as input and so a sensible answer is impossible. "Product" is a binary operator. A binary operator takes two numbers as input and combines them into an output. Your question gives only one number as input and so a sensible answer is impossible.


What is the difference between bits and byts?

A bit is the smallest unit of binary language; either a 1 or a 0. A byte is made up of 8 bits.