Saved Bookmarks
| 1. |
In the following code fragment int x, y = 2, z, a;x=(y*=2) + (z=a=y);printf (‘%d’,x);(A) prints 8(B) prints 6(C) prints 6 or 8 depending on the compiler(D) is syntactically wrong |
|
Answer» Correct option - (A) prints 8 Explanation:- It will print 8 because x=(y*=2)+(z=a=y)=4+4=8. |
|