What does the fgets function in C do when it encounters a newline character?
A. Removes the newline character
B. Stops reading
C. Replaces the newline with a space
D. Continues reading
Answer: Option B
Related Questions on Arrays and Strings
A. Removes the newline character
B. Stops reading
C. Replaces the newline with a space
D. Continues reading
Answer: Option B
Join The Discussion