S
sonic
Please tell me what is wrong (and for me to avoid browsing through
200k something messages
) or am i missing something obvious (btw i've tested with gcc on
latest Tiger OS X and linux); or should i post to gcc?
---------------------------
#include <stdio.h>
int main()
{
int i = 2;
i = (i*=1 ? i-2 : 0);
printf("val is %d\n", i);
return 0;
}
--------------------------
you would expect to print 0 right, it does!
removed -2, like:
-------------------------
#include <stdio.h>
int main()
{
int i = 2;
i = (i*=1 ? i : 0);
printf("val is %d\n", i);
return 0;
}
200k something messages
) or am i missing something obvious (btw i've tested with gcc on
latest Tiger OS X and linux); or should i post to gcc?
---------------------------
#include <stdio.h>
int main()
{
int i = 2;
i = (i*=1 ? i-2 : 0);
printf("val is %d\n", i);
return 0;
}
--------------------------
you would expect to print 0 right, it does!
removed -2, like:
-------------------------
#include <stdio.h>
int main()
{
int i = 2;
i = (i*=1 ? i : 0);
printf("val is %d\n", i);
return 0;
}