EmbLogic's Blog

E10 :isssue in gets while entering input via pointer.. SIDDHARTH SIR

char * str;

str =malloc(100);

in do while loop why m i not able to enter any string into gets (provided when the loop runs for more than one time)???

do{ gets(str);}whlie(any condition);

 

and when i tried my program using” two gets(str)” then my program was running properly…

why ?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>