On Mon, Jul 4, 2011 at 3:54 PM, amit the cool <amitthecoo...@gmail.com>wrote:

> main()
> {
> int i=0;
> while(+(+i--)!=0)
>
Here the value passed of i is 0 only. So the next statement does not
execute. But after using, I gets decremented to -1

> i-=i++;
> printf("%d",i);
> }
>
> output sud be 1
> bt it is -1;
> why??
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algogeeks@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> 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 algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to