Which of the following function is more appropriate for reading in a multi-word string? gets() puts() scanf() printf()
Question
Solution 1
The most appropriate function for reading in a multi-word string is gets()
.
Here's why:
gets()
function: This function is used to read a line from the standard input (keyboard) until a newline character or the end of the file. It can read multi-word strings because it does not stop reading Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study prob
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solv
Similar Questions
Which of the following function is more appropriate for reading in a multi-word string? ans. scanf() printf() gets() puts()
Which of the following function is more appropriate for reading in a multi-word string? gets() puts() scanf() printf()
Which of the following function is more appropriate for reading in a multi-word string? ans. gets() puts() printf() scanf()
Which of the following function is more appropriate for reading in a multi-word string?ans.puts()scanf()gets()printf() Previous Marked for Review Next
Which of the following function is more appropriate for reading in a multi-word string?