#include <stdio.h>
int main()
{
int x = 1;
if (++x > 2,5)
printf("%d", ++x);
else
printf("%d", x++);
}
I don't understand why the output is 3
. ++x == 2
and 2 > 2,5
is false. But the compiler says the if
statement evaluates to true. What is the reason?