I bumped into a problem which prompted me to do some research. I have found that a piece of code like this:
#include <stdio.h>
int main(void)
{
char i = 0;
i++ && puts("Hi!");
printf("%hhd\n", i);
}
only processes the increment, and outputs:
1
That is not the case if the postfix increment is replaced by a prefix one, it outputs:
Hi!
1
Why does it behave like that?
I apologise if the question is dumb.