B
Barry Schwarz
You appear to have ignored my definition of transitivity.
If knowing that a == b && b == c means that you know for sure that a ==
c, then == is transitive. It has nothing to do with being able to use
the a == b == c syntax. As I said, I believe that == is transitive, but
I don't know the standard well enough to confirm this.
Well, if that were true this would produce three statements of
equality. It's a shame it won't compile. But, if you are not allowed
to compare them, how can you say they are equal?
#include <stdio.h>
int main(void){
int x[2];
int *a;
void *b;
int (*c)[2];
a = x;
b = x;
c = &x;
if (a == b) puts("a == b");
if (b == c) puts("b == c");
if (a == c)
puts("a == c");
else
puts("a != c");
getchar();
return 0;}
Remove del for email