wrote:
> atleast one shud expect similar kind of behavior from the different
> versions of the same compiler.
Why would one expect any such thing? Even the same version of the
same compiler can easily and reasonably generate different code. My
Borland 5.4.1 compiler, for example, can be told to use 80486
instructions or Pentium Pro instructions. You want to place bets on
whether the behavior of code exhibiting undefined behavior will be the
same for these two instruction sets?
> one can never argue .. as the C language doesnt specifies the behavior
> of such function calls. it is always compiler specific.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
"Undefined" means undefined. A compiler/implementation need not
behave in any documented or even reasonable way when faced with such
situations.
--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.