What is the purpose of the fgets function in C?
A. Read a file
B. Read a string from the console
C. Write to a file
D. Write to the console
Answer: Option B
Related Questions on Arrays and Strings
A. Read a file
B. Read a string from the console
C. Write to a file
D. Write to the console
Answer: Option B
Join The Discussion