Why post-decrements operator in the following C code is not working as desired? (to have the value of 7). Knowing that it is not an undefined behaviour.
#include<stdio.h>
int main()
{
int a = 8, r;
r = (a==8) || (a--);
printf("a = %d\n", a);
return 0;
}