Which of these values is returned by read() method is end of file (EOF) is encountered?
-1
1
0
Null
None of these
Correct Option: A
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.