Exercise :: Strings - General Questions
Which of the following function is more appropriate for reading in a multi-word string?
Answer: Option C
gets(); collects a string of characters terminated by a new line from the standard input stream stdin
Enter a string: IndiaBIX
The string input was: IndiaBIX
Which of the following function is correct that finds the length of a string?
Answer: Option A
Option A is the correct function to find the length of given string.
Output: Length = 8