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;

Looks straight forward to me. It might help to explain what you don't understand.

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.