On Sun, Sep 28, 2008 at 6:38 AM, Asim Mian <[EMAIL PROTECTED]> wrote:
> I m modifying ur code..now it will execute......
>
>> i)void main()
>> {
>> int x=1;
>> int y;
>> y=++x+ ++x+ ++x;
>> printf("%d", y);
>> }
>
>
>> ii) void main()
>> {
>> int x=1;
>> inty=++x+ ++x+ ++x;
>> printf("%d", y);
>> }
>
>
>
> In both the cases answer will be 10.....

Not every time it won't. You're still invoking undefined behaviour.

-- 
PJH

http://shabbleland.myminicity.com/

Reply via email to