c - Difference scanf vs gets vs fgets in terms of efficiency -
what difference between scanf, gets , fgets (and others?) in terms of efficiency? example case: imagine reading in list of several thousand integers (per line)
this question has been asked more often, responds mentioning buffer overflows (eg: here), clarify why question not in fact duplicate: know , not care buffer overflows. setting in apply these methods in competitive programming, know input looks , when input not expected (ie. leading buffer overflows) it's not problem.
Comments
Post a Comment