T Thịnh Võ Member Sep 19, 2021 #1 Which of these values is returned by read() method is end of file (EOF) is encountered? A. 0 B. 1 C. -1 D. Null
Which of these values is returned by read() method is end of file (EOF) is encountered? A. 0 B. 1 C. -1 D. Null
K Khánh Đoan New member Sep 19, 2021 #2 Answer: c Explanation: Each time read() is called, it reads a single byte from the file and returns the byte as an integer value. read() returns -1 when the end of the file is encountered. Upvote 0 Downvote
Answer: c Explanation: Each time read() is called, it reads a single byte from the file and returns the byte as an integer value. read() returns -1 when the end of the file is encountered.