scanf in C takes one word and ignore rest of

August 25, 2010 at 09:05:28
Specs: Windows XP
`Hello there !: I am using TC4.5 under XP OS. Input by scanf ("%s30", text); takes first word e.g upto first blank and ignores the rest

See More: scanf in C takes one word and ignore rest of

Report •

#1
August 25, 2010 at 09:20:41
Yep, that's what it does. fgets() is probably a better choice.

Report •
Related Solutions


Ask Question