#include <stdio.h>
int main(void) 
{
    int a = 10;
    if(a == a--)
    {
        printf("TRUE 1");
    }
    a = 10;
    if(a == --a)
    {
        printf("TRUE 2");
    }
    return 0;
}
I thought this code should print TRUE 1 but rather the output is TRUE 2. Why is it so? It seems it only happens in C because the same thing in java prints TRUE 1.
