Can you please help me with this question. I do not understand. :(
thank you so much.

If a, b, and c are integer variables, some of these expressions are valid C++ and others are
not. For each expression, add parentheses to indicate the precedence and associative rules,
and hence decide which are valid and which are not. In each case, briefly explain in words the
meaning of the valid expressions, or why the expression is not valid.
a == b = c;
a = b == c;
a == b == c;

5 Years
Discussion Span
Last Post by love_you_4rever

Step 1: Look at operator precedence and associativity rules in C++.
Step 2: Add parenthese in the expressions to mark the precedence more clearly.
Step 3: Determine which expressions are valid and which are not.

Hint 1: The thing at the left of an assignment = must always be a named variable.
Hint 2: The bool type, what logic operations output, is a simple integer type with 0 (false) or 1 (true) as value.


what you mean by that?!

"It might help to explain what you don't understand."

Might = possibility exists
Help = to aid; to give a clue
Explain = give details; expand your explanation to include more information
Don't Understand = your confusion area; what confuses you

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.