Hello!
This code produces a strange result on Solaris 2.5.1 with gcc 2.8.1:
--cut here--
#include <stdio.h>
int main()
{
int x = 0;
int y = 5;
int z = 15;
printf ("%i, %i, %i, %i\n", x, x += y, x += 2, x += z);
return 0;
}
--cut here--
It displays "22, 5, 7, 22".
I would expect the result to be "0, 5, 7, 22".
Uros.