+1 @Sankalp On Tue, Jul 5, 2011 at 5:02 PM, sankalp srivastava <[email protected]> wrote: > A better place to put these types of questions would be www.stackoverflow.com > > On Jul 4, 10:45 pm, amit kumar <[email protected]> wrote: >> thanx guys... >> >> On Mon, Jul 4, 2011 at 5:11 PM, [email protected] < >> >> >> >> >> >> >> >> [email protected]> wrote: >> > In while loop, the value of i will be used as 0 as it is post decrement so >> > the value of i will decrement after the while loop is executed. >> > so 0!=0 will fail and the value of i will get decrement and will be printed >> > as -1. >> >> > On Mon, Jul 4, 2011 at 3:54 PM, amit the cool >> > <[email protected]>wrote: >> >> >> main() >> >> { >> >> int i=0; >> >> while(+(+i--)!=0) >> >> 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 [email protected]. >> >> To unsubscribe from this group, send email to >> >> [email protected]. >> >> 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 [email protected]. >> > To unsubscribe from this group, send email to >> > [email protected]. >> > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
