Request for help
Srinivas Vangara (svangara)
svangara@cisco.com
Wed Jan 7 04:06:00 GMT 2004
Hi
Is the statement:
a[i]=a[i++]; a valid statement as per ANSI C standards or the behaviour
is undefined and the implementation is compiler dependent?
Looks like gcc is treating this as a[i]=a[i];i++; Where as the
programmers intention could be a[i+1]=a[i];i++;
Does the C language ANSI standard enforce any evaluation order or the
implementation is left to the compiler?
Thanks & Regards,
Srinivas.
More information about the Gcc-help
mailing list