Strings – General Questions

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

A. printf();
B. scanf();
C. gets();
D. puts();

Correct Answer: C. gets();
Advertisement

7. Which of the following function is correct that finds the length of a string?

Which of the following function is correct that finds the length of a string

Correct Answer: Option A
Advertisement

Leave A Comment?