953 views
0 0 votes
why did the statement c++=b%(b-a) will gives error

1 Answer

0 0 votes

It will give an lvalue required error because assignment operator requires its LHS should be in memory operand.
Means LHS should be an assignable variable to which you can assign value.
Here you are assigning the value to an expression that's why it is giving error. 

Position:
Show:

Related questions

6 6 votes
4 4 answers
2.1k
2.1k views
GO Classes asked May 2, 2022
2,100 views
What will be output printed by the following program?#include<stdio.h main() { int c=4; switch(c) { c=c-1; case 4: printf("IITB ")...
7 7 votes
2 2 answers
1.2k
1.2k views
GO Classes asked May 2, 2022
1,225 views
Trace the execution of the following if statements and select the output from this code fragmentint main() { int a = 3, b = 7 ; if ( (a + b) % 2 != 0 ) { printf("tetrahed...