This is the exemplar code that I encountered in entry level Computer Programming course:
#include <stdio.h>
int main()
{
int l = 20, m = 10;
int z;
z= l++ || m++;
printf("z = %d l = %d m = %d\n", z, l, m);
}
The code prints l=21, m=10 and z=1 values of l and z are what was expected by me, but value of m is troubling me. Shouldn't it be 11 as m++ is present in code.