output on my compiler is 1....65535
as i=0 initialy ++i is true and so for loop condition is true and printf is
executed. when i becomes 65535 then ++i is equal to 0 and so for loop
condition becomes false.

On 5 June 2010 13:44, sharad <sharad20073...@gmail.com> wrote:

> #include<stdio.h>
> int main()
> {
> short int i=0;
> for(i<=5&&i>=-1;++i;i>0)
> printf("%u\n",i);
> return 0;
> }
>
> o/p coming is 1...4,294,967,295
> short int is of 2 bytes
> can any one plzz explain the o/p
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algoge...@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@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 algoge...@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