✏️ Explanatory Question

What is gets() function?

👁 1,479 Views
📘 Detailed Answer
💡

Answer with Explanation

The gets() function allows a full line data entry from the user. When the user presses the enter key to end the input, the entire line of characters is stored to a string variable. Note that the enter key is not included in the variable, but instead a null terminator is placed after the last character.