# 2.6 Exercise
1. (Multiple correct answers) Which of the following statements will cause compile error "invalid lvalue in assignment"?
1. `i + j = 100;`
2. `i = i + j; `
3. `i + j + (i++) = 100;`
4. `j = i = j + i`
ANS : 1, 3
2. What is the output of the following code?
```c
#include<stdio.h>
int main() {
int i = 0, j = 0;
j = i = 1;
printf("%d", i++);
printf("%d", i);
printf("%d", j = ++i);
return 0;
}
```
1. 123
2. 234
3. 012
4. 122
ANS : 1
3. (Multiple correct answers) Which of the following statements have side effect?
1. `j += 100;`
2. `i + j; `
3. `++i + 100;`
4. `i + j++;`
ANS: 1, 3, 4