Pages

Saturday

What is gets Function in C with Syntax and Example

This function "gets" reads a whole line of input from standard input (stdin) into a string until a newline or EOF (End-of-File) is encountered. It is critical to ensure that the string is large enough to hold any expected input lines.