Which statement correctly reads a string from a text file into a character array str?
Show answerHide answer
Correct answer: (D) fgets(str, sizeof(str), fp);
Correct answer: (D) fgets(str, sizeof(str), fp);
This is question 78 of BEL PE Computer Science PYQ, 20 Dec 2025 (5:00 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.