Hi, yesterday I experimented with the increment/++ operator. It seems
some behavior is not defined in C (as I was informed when posting on
Comp.Lang.C) - does the same go for C#? Is it clear what f.x: "b2[c2+
+] = a[c2];" does in C#? Is it possible that a compiler, when going
from C# to CIL, could make "different" interpretations of my code.
I compiled with cs for .NET 1.x and 2.x and also mcs with identical
result. But gcc and cl produced different result from similar c-code
(the origin of my question).
Experimental details: http://www.pererikstrandberg.se/blog...usPlusOperator
My post in Comp.Lang.C:
http://groups.google.se/group/comp.l...51243b04c893e5
Thanks,
Per
--
Per Erik Strandberg
blog: http://www.pererikstrandberg.se/blog/
work: http://tomopt.com/tomnet/