GAT Subject
Engineering
Computer Science Civil Engineering Chemical Engineering Agricultural Engineering Mechanical Engineering Electronics and Communication
9. | Out of fgets() and gets() which function is safe to use? | |
A. | gets() | |
B. | fgets() | |
C. | gets() and fgets() | |
D. | None of above | |
Answer: Option B | |
Explanation: | |
Because, In fgets() we can specify the size of the buffer into which the string supplied will be stored. |
|
Tutorial Link: |