So I have the following program:
# define swap(a,b) temp=a; a=b; b=temp;
int main() {
int i, j, temp;
i = 5;
j = 10;
temp = 0;
if (i > j)
swap(i, j);
printf("%d %d %d", i, j, temp);
}
This results in:
10, 0, 0
What I don't understand is why the if (5 > 10)
condition was executed as "true" even though 5 is not bigger than 10.