Request for help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux