On Thu, Sep 3, 2009 at 7:53 AM, Akash Goswami<[email protected]> wrote:

> #include<stdio.h>
> #include<conio.h>
> int main()
> {
> int m=1;
> m=m++ + m++ + ++m + ++m;
> printf("%d", m);
> getch();
> }
>
> what would be the output &WHY?????plz explain

*sigh* Here we go again.

This code exhibits undefined behavior.

http://www.eskimo.com/~scs/c-faq.com/expr/seqpoints.html

-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
    If I were to divulge it, it would overturn the world."
               -- Jelaleddin Rumi

Reply via email to