The output of the following program is not as i had expected it to be.Please explain it to me how the logical expression works in this program.
#include<stdio.h>
int main()
{
int i=-3, j=2, k=0, m;
m = ++i || ++j && ++k;
printf("%d, %d, %d, %d\n", i, j, k, m);
return 0;
}
the output i had expected is -2, 3, 1, 1 the output is -2, 2, 0, 1 why are j and k not increamenting