Vidyalelo
C Programming · Q54

Arrays and Strings

Programming · C Programming · question 54

Q54

Which of the following function is more appropriate for reading in a multi-word string?

A.
scanf()
B.
gets()
Answer
C.
printf()
D.
puts()
E.
None of these

Answer: Option B

Solution

Answer: Option B
Solution:

gets(); collects a string of characters terminated by a new line from the standard input stream stdin