D
Dave
Please consider the following:
st = sf[i++]
I seem to recall that there is a potential problem with an expression such
as this. If I recall properly, this actually exhibits undefined behavior,
though most compilers will probably do what was intended.
I remember one layman's explanation was that we don't know for sure that
sf[i++] won't be evaluated first, to we can't be sure that i will be
incremented at the proper time. However, as I recall, the real problem was
a little deeper than this.
Could somebody please explain?
Thanks!
st = sf[i++]
I seem to recall that there is a potential problem with an expression such
as this. If I recall properly, this actually exhibits undefined behavior,
though most compilers will probably do what was intended.
I remember one layman's explanation was that we don't know for sure that
sf[i++] won't be evaluated first, to we can't be sure that i will be
incremented at the proper time. However, as I recall, the real problem was
a little deeper than this.
Could somebody please explain?
Thanks!