nice idea Saurabh, but i don't think much people will join that group too, and the difference should be on the basis of type of questions asked. Any suggestions from others ? There we can ask questions related to debugging and puzzles, aptitude....
On Sat, Jul 23, 2011 at 8:51 PM, saurabh singh <[email protected]> wrote: > The break statement here breaks out of the do loop so the o/p hello hmmm > give a break statement after hello and you will get only hello. > > PS:Seeing the number of C questions wont it be a better idea to start a > parallel group especially for the same?My request to the group admins for > the same. > > > On Sat, Jul 23, 2011 at 8:47 PM, geek forgeek <[email protected]>wrote: > >> #include<stdio.h> >> main() >> { >> int i=3; >> switch(i) >> { >> do >> { >> case 3: printf("\nhello"); >> case 2:printf("\n hmmmm"); >> break; >> case 1:printf("wat"); >> break; >> case 0: printf("hai"); >> }while(i--); >> } >> } >> >> -- >> 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. >> > > > > -- > Saurabh Singh > B.Tech (Computer Science) > MNNIT ALLAHABAD > > > -- > 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.
