Question: Many compilers may not generate a warning if the assignmoperator is mistakenly used instead of the equality operator). That is, even though you mistakenly write

Many compilers may not generate a warning if the assignmoperator is mistakenly used instead of the equality operator). That is, even though you mistakenly write if (x 10) rather than if (x--10) the compiler may not generate a warning. Rewrite expression x--10 so that the compiler will always generate an error when the assignment operator is mistakenly used instead of the equality operator? Write only the expression without using any whitespace or brackets (don't write an if statement, instead just provide the expression). Hint: Check out Chapter 5 for the
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
