Please help me with this, I am having a hard time!!!
Code:
    main()
    {
        int x=10, y=15;
        x = x++;
        y = ++y;
        printf(%d, %d\n,x,y);

    }
the result for the above is 10, 16 , if i replace x=x++ with x++ the result is 11,16
so isnt x=x++ and x++ same??

secondly
Code:
    main()
    {
        int x=20,y=35;
        x=y++ + x++;
        y= ++y + ++x;
        printf(%d%d\n,x,y);

    }
the answer is 57, 94 on a mingw32-gcc.exe compiler and 56, 93 on a gcc compiler!!! so do different compilers work differently??

Thanks guys

Last edited by shabbir; 29Jan2007 at 09:31.. Reason: Code formating.