I am trying to understand how this code works,
int main () {
int m, k;
m = (k=5)+(k=8)+(k=9)+(k=7);
printf("m=%d\n",m);
printf("k=%d\n",k);
}
The output: m=32 k=7
I have no idea how is the value of m become 32. I hope someone can help me to understand how this code works and how the outputs end up like this