Compiler Recommendations
Kristian Erik Hermansen
kristian.hermansen at gmail.com
Thu Jan 3 19:00:11 EST 2008
On 03 Jan 2008 17:19:34 -0500, Kevin D. Clark <kevin_d_clark at comcast.net> wrote:
> Q: If I write the code int i, j; can I assume that (&i + 1) == &j?
> A: Only sometimes. It's not portable, because in EBCDIC, i and j
> are not adjacent.
> -- Infrequently Asked Questions in comp.lang.c
The answer to this is also "no" because some compiler
randomize/reorder both compile and runtime variable allocations for
security reasons :-)
--
Kristian Erik Hermansen
"Know something about everything and everything about something."
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the Discuss
mailing list