Which of the following function is more appropriate for reading in a multi-word string? ans. gets() puts() printf() scanf()
Question
Solution 1
The most appropriate function for reading in a multi-word string is gets()
.
Here's why:
gets()
: This function is used to read a line from the standard input (keyboard) and store it in an array of type char. It can read multi-word strings as it does not stop reading input on encountering th 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?