hi there
im wondering about the difference between:
int nr;
if(!((nr--)%5)){...}
if(!((nr--)%5)){...}
and:
int nr;
if(!(--nr)%5)){...}
if(!(--nr)%5)){...}
is it right that in case 1 nr will be decremented after true/false comparison and in case 2 in advance?
assuming nr=123456;
in case 1 it would be true for second if.... and
in case 2 it would be true for first if?
im not too sure about the difference between --var and var--