What will be the value of ans after the following statements are executed?
```
int x = 40;
int y = 40;
if (x = y)
ans = x + 10;
```
a. 30
b. 80
c. 50
d. The code contains an error and will not compile.
d. The code contains an error and will not compile.
Computer Science & Information Technology