Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
scanf reads the input string byte by byte, constantly comparing against the given pattern and trying to parse. Both spaces and the end of the line are all parsed. One of the largest functions in the standard library.
fgets is generally simple - almost normal while(c != 0) {c = fgetc();}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question