This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Request for help
- From: "Srinivas Vangara \(svangara\)" <svangara at cisco dot com>
- To: <gcc-help at gcc dot gnu dot org>
- Cc: <svangara at cisco dot com>
- Date: Wed, 7 Jan 2004 09:36:26 +0530
- Subject: Request for help
- Organization: Infosys-Cisco
- Reply-to: <svangara at cisco dot com>
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.