#include <stdio.h> main() { char * str = "hello"; char * ptr = str; char least = 127; while (*ptr++) least = (*ptr<least ) ?(*ptr) :(least); printf("%d",least); getch(); } in this ques i got o/p is 0(no doubt) but i have a doubt in why every time least is getting 101-'e' as the value. why are ascii values of llo not assigned in least. please someone explain. -- Vindhya Chhabra
-- 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.