Consider this simple program:
It shows the output "x = 4 and y = 3";Code:main() { int x, y; x = (y = 3, y + 1); printf("x = %d and y = %d", x, y); }
I just want to know why it first of all assigns the value 3 to y instead of calculating y + 1 as "+" has a higher priority as compared to "=".
Thanks a lot.