GAT Subject
Engineering
Computer Science Civil Engineering Chemical Engineering Agricultural Engineering Mechanical Engineering Electronics and Communication
6. | Which of the following function is more appropriate for reading in a multi-word string? | |
A. | printf(); | |
B. | scanf(); | |
C. | gets(); | |
D. | puts(); | |
Answer: Option C | |
Explanation: | |
gets(); collects a string of characters terminated by a new line from the standard input stream stdin |
|
Tutorial Link: |