Questions related to the scanf() family of functions in the C runtime library, which read and convert formatted data.
i have to write a program in C to read a file containing several line of text, each line contains …
c fgets scanfI want to know what is the difference between fgets() and scanf(). I am using C as my platform.
c scanf fgetsI want to make a loop in C that, when the program asks for an integer and the user types …
c user-input scanf format-specifiersI have been told that scanf should not be used when user inputs a string. Instead, go for gets() by …
c scanf getsI've a small C-program which just reads numbers from stdin, one at each loop cycle. If the user inputs some …
c gcc scanfscanf(" %[^\n]",line); A friend of mine suggested that using fgets() to read a line as input would be a …
c scanf stdioI want to know the disadvantages of scanf(). In many sites, I have read that using scanf might cause buffer …
c input user-input scanf