[algogeeks] Re: Scanf in an infinite loop

2011-09-13 Thread Lakshmi Prasad
could you please elaborate on this conceptor provide me with a link On Sep 13, 12:17 pm, Ankuj Gupta ankuj2...@gmail.com wrote: What I am guessing is that the stdin used by scanf is not getting flushed after entering a char as a result of which it is running into infinite loop. If you use

[algogeeks] Re: Scanf in an infinite loop

2011-09-13 Thread Lakshmi Prasad
when i'm giving some character values followed by an integer the scanf is not reading the integer On Sep 13, 1:08 pm, Don dondod...@gmail.com wrote: Scanf with a %d flag will ignore anything that is not a decimal number, until it finds a decimal number. Don On Sep 13, 5:23 am, Avinash Dharan

Re: [algogeeks] My senior's Interview Experience at Microsoft who got selected and offered a 16lacks package

2011-08-05 Thread Lakshmi Prasad
for some inputs its giving junk as the answer and for others its giving segmentation fault could u plese explain why -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To view this discussion on the web visit

[algogeeks] Re: Puzzle

2011-08-05 Thread Lakshmi Prasad
I didn't understand it fully plese explain On Aug 4, 2:48 pm, sagar pareek sagarpar...@gmail.com wrote: double 87.5 gives you 175 100 will be used by 1st well and 75 will be used by second now second well will double the 75 and will give you 150 100 will be used by second and remainder 50