Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

what is use of gets function in c language.

+1 vote
asked Mar 17 by GANESH KUMAR (140 points)

1 Answer

0 votes
answered Mar 21 by Peter Minarik (86,160 points)

You can find the manual here: https://cplusplus.com/reference/cstdio/gets/

In short, it gets a string from the standard output. You must exercise caution and not mix gets() with scanf() as they handle end-of-line consumption differently.

Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.