An ANSI-compliant compiler is not required to generate an error for
undefined code. The code syntax is correct. ANSI doesn't say what the
compiler must do for undefined code, which is why it is undefined. The
compiler can do anything. It might do what you expect, or it might
not.

Don

On Jun 1, 1:38 pm, richa mahajan <[email protected]> wrote:
> if it is undefined by standard den y dont compilers follow it
>
> On Wed, Jun 1, 2011 at 11:59 PM, Don <[email protected]> wrote:
> > That may be true, but it is not guaranteed. Having multiple side
> > affects between sequence points is undefined by the ANSI standard.
> > Therefore an ANSI-compliant compiler could produce an executable which
> > causes monkeys to fly out of your nose.
>
> > Don
>
> > On Jun 1, 11:27 am, anuj agarwal <[email protected]> wrote:
> > > This will be same as:
> > > b=b+1;
> > > b=b+1;
> > > a=b*b;
>
> > > Basically, all prefix increment and decrement operators will be executed
> > > first. Similarly all postfix operators will be executed at last.
>
> > > Anuj Agarwal
> > > Engineering is the art of making what you want from things you can get.
>
> > > On Wed, Jun 1, 2011 at 5:27 PM, Vishal Thanki <[email protected]
> > >wrote:
>
> > > > you may want to read:http://c-faq.com/expr/seqpoints.html
>
> > > > On Wed, Jun 1, 2011 at 5:19 PM, himanshu kansal
> > > > <[email protected]> wrote:
> > > > > a=++b*++b;
> > > > > if b=3 initially, then a is coming out to be 25.....why????
>
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Algorithm Geeks" group.
> > > > > To post to this group, send email to [email protected].
> > > > > To unsubscribe from this group, send email to
> > > > [email protected].
> > > > > For more options, visit this group at
> > > >http://groups.google.com/group/algogeeks?hl=en.
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Algorithm Geeks" group.
> > > > To post to this group, send email to [email protected].
> > > > To unsubscribe from this group, send email to
> > > > [email protected].
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/algogeeks?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Algorithm Geeks" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group at
> >http://groups.google.com/group/algogeeks?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to