Get premium membership and access questions with answers, video lessons as well as revision papers.

Describe the limitations of using getchar and scanf functions for reading strings.

      

Describe the limitations of using getchar and scanf functions for reading strings.

  

Answers


JOSEPH
1using the highlighted functions to get a string from us leads to the possibility that the string may be longer than your buff which may cause an overflow.
2.The possibility of a failed scan may leave your file pointer in an intermediate location.
Joseph lance answered the question on February 12, 2018 at 09:23


Next: What is a dynamic memory allocation? How does it help in building complex programs?
Previous: Explain the need for array variables in C++

View More Computer Science Questions and Answers | Return to Questions Index


Learn High School English on YouTube

Related Questions