You can put a label in while condition and then use goto label to print hello.
#include<stdio.h> int main() { goto vijay; while ( 0) { vijay: printf("hello"); } return 0; } Am i right..please reply.. On Wed, Sep 5, 2012 at 6:15 PM, Shashank Jain <shashank29j...@gmail.com>wrote: > Here is a question...and i am badly stuck at it > > how would you get into the loop > > int main() > { > > while ( 0) > { > printf("hello"); > > } > return 0; > } > > > You cannot change the while loop and its condition and you have to print > "hello" > > -- > 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.