please help me understanding the following program?
int i= -1, j= 1, m;
m= i++ && j++ || i++;
printf("%d %d", i,m);
`i` isn't 0, so the first part of the logical AND succeeds. `i` is then incremented. Next `j` isn't 0, so the second part of the logical AND succeeds. `j` is incremented. The OR part of the test isn't performed due to short circuiting and `m` is set to a … Read More
Edited by WaltP