answersLogoWhite

0


Best Answer

The left hand operand of a binary operator must represent a modifiable lvalue:

void f (const int x, int y) {

x = y; // error -- x is constant lvalue

y = x; // ok

}

User Avatar

Wiki User

7y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What represents the left hand side of a binary operator in c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

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)).


What is difference between conditional operator and bitwise operator?

A binary operator is simply an operator that has two parts, written to the left and to the right of the operator, e.g.:1 + 2The binary operator can be a logical operator ("and", "or", "xor", etc. - but "not" is a unary operator), or it can be in some other category, like the arithmetic operator shown above.A binary operator is simply an operator that has two parts, written to the left and to the right of the operator, e.g.:1 + 2The binary operator can be a logical operator ("and", "or", "xor", etc. - but "not" is a unary operator), or it can be in some other category, like the arithmetic operator shown above.A binary operator is simply an operator that has two parts, written to the left and to the right of the operator, e.g.:1 + 2The binary operator can be a logical operator ("and", "or", "xor", etc. - but "not" is a unary operator), or it can be in some other category, like the arithmetic operator shown above.A binary operator is simply an operator that has two parts, written to the left and to the right of the operator, e.g.:1 + 2The binary operator can be a logical operator ("and", "or", "xor", etc. - but "not" is a unary operator), or it can be in some other category, like the arithmetic operator shown above.


What is meant by left skewed binary tree?

a binary tree with only left sub trees is called as left skewed binary tree


Is 123 in Decimal System equal to 1111011 in binary system?

The rightmost digit represents how many 1s (in this example 1) 1 The next digit left represents how many 2s (in this example 1) 2 The next digit left represents how many 4s (in this example 0) 0 The next digit left represents how many 8s (in this example 1) 8 The next digit left represents how many 16s (in this example 1) 16 The next digit left represents how many 32s (in this example 1) 32 The next digit left represents how many 64s (in this example 1) 64 Total 123


What is the difference between the assignment operator and the equals operator?

The quality operator and the assignment operator are binary operators; they have two operands, one on either side of the operator. The equality operator is a Boolean operator which compares the two operands, returning true if they have the same logical state, otherwise false. E.g., x==y returns true if x and y have the same logical state, otherwise false. The operator is commutative, such that x==y is the same as y==x. The assignment operator sets the value of the left operand to that of the right operand, such that they both have the same logical state. After assignment, the left operand is returned. E.g., x=y returns x while y=x returns y. After the assignment, x==y must be true.

Related questions

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)).


What is difference between conditional operator and bitwise operator?

A binary operator is simply an operator that has two parts, written to the left and to the right of the operator, e.g.:1 + 2The binary operator can be a logical operator ("and", "or", "xor", etc. - but "not" is a unary operator), or it can be in some other category, like the arithmetic operator shown above.A binary operator is simply an operator that has two parts, written to the left and to the right of the operator, e.g.:1 + 2The binary operator can be a logical operator ("and", "or", "xor", etc. - but "not" is a unary operator), or it can be in some other category, like the arithmetic operator shown above.A binary operator is simply an operator that has two parts, written to the left and to the right of the operator, e.g.:1 + 2The binary operator can be a logical operator ("and", "or", "xor", etc. - but "not" is a unary operator), or it can be in some other category, like the arithmetic operator shown above.A binary operator is simply an operator that has two parts, written to the left and to the right of the operator, e.g.:1 + 2The binary operator can be a logical operator ("and", "or", "xor", etc. - but "not" is a unary operator), or it can be in some other category, like the arithmetic operator shown above.


How do you you drill a bowling ball for lefthander?

A proshop operator drills a bowling ball the same way for left handed bowlers as they would a right handed bowler. Proshop operator use measurements for span, hole sizes and pitch angles based on the throwing hand. So they will measure the left hand for left handers and the right hand for right handers.


Convert 11000100 from binary to decimal?

in decimal = 196 The rightmost digit represents how many 1s (in this example 0) The next digit left represents how many 2s (in this example 0) The next digit left represents how many 4s (in this example 1) The next digit left represents how many 8s (in this example 0) The next digit left represents how many 16s (in this example 0) The next digit left represents how many 32s (in this example 0) The next digit left represents how many 64s (in this example 1) The next digit left represents how many 128s (in this example 1) so the answer is calculated by: 4 + 64 + 128 = 196


What represents what in writing starting with Q?

"Qwerty" is the word that is on the left hand corner on your keyboard.


What is meant by left skewed binary tree?

a binary tree with only left sub trees is called as left skewed binary tree


Is 123 in Decimal System equal to 1111011 in binary system?

The rightmost digit represents how many 1s (in this example 1) 1 The next digit left represents how many 2s (in this example 1) 2 The next digit left represents how many 4s (in this example 0) 0 The next digit left represents how many 8s (in this example 1) 8 The next digit left represents how many 16s (in this example 1) 16 The next digit left represents how many 32s (in this example 1) 32 The next digit left represents how many 64s (in this example 1) 64 Total 123


Why ostream operators not overloaded using member functions?

Consider the following line: cout<<obj; where obj is the object of Demo class. In this case we are overloading "<<" operator. But overloading the binary operator using member function, the left hand operand should be the object of relevant class. Here in this case left hand side operand is not the object of Demo class. It is object of ostream class. Hence we cant overload ostream operators using member function. But we can overload these type of operators using friend functions. Thanks, Prof. D. H. Ingole


How do you read a girl's hand?

First the left hand is read to get an idea of the girl`s future destiny as it represents the future compared to the right one which is the past.


What is the difference between the assignment operator and the equals operator?

The quality operator and the assignment operator are binary operators; they have two operands, one on either side of the operator. The equality operator is a Boolean operator which compares the two operands, returning true if they have the same logical state, otherwise false. E.g., x==y returns true if x and y have the same logical state, otherwise false. The operator is commutative, such that x==y is the same as y==x. The assignment operator sets the value of the left operand to that of the right operand, such that they both have the same logical state. After assignment, the left operand is returned. E.g., x=y returns x while y=x returns y. After the assignment, x==y must be true.


What are the Application of tree and graph in data file structures?

Using binary tree, one can create expression trees. The leaves of the expression tree are operands such as constants, variable names and the other node contains the operator (binary operator). this particular tree seems to be binary because all the operators used are binary operators. it is also possible for a node to have one node also, in case when a unary minus operator is used. we can evaluate an expression tree by applying the operator at the root to the values obtained by recursively evaluating the left and right sub trees.


Which fingers are used in maxwell's left hand rule?

The thumb, the index finger and the middle finger.