Question: What exactly is the compiler complaining about when it says non lvalue in assignment? And why exactly does the if evaluate to TRUE in part
int maino ft 10 x t 11): ft 12): system( pause"); return 0; (a) When I compiled the above code, my compiler highlighted the line marked (1) and printed the following error message: "non-Ivalue in assignment" (b) But when I changed line (1) to read: if (i 4)Il i 5)) I/ note the parentheses The program prints: C: Documents and SettingsljerryMy Documents Visual Studio 20 TRUE!TRUE!TRUE!?? Press any key to continue Ouestion Fully, and exactly explain the outputs for (a) and (b) above. In other words, what exactly is the compiler complaining about when it says: "non-Ivalue in assignment" ( last page of Hint: think operator precedence. For reference, see the precedence table on the this exam.) and why ctly does the "i f" evaluate to true in part (b) so that the program print "TRUE!!! Use the back of this page if you need more room for the answer. (10 points) The complie non-Ial Canno to Jemp
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
