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

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -