Name the method which returns integer as -1 when the end of file is encountered.
A. int read()
B. int ReadByte()
C. void readbyte()
D. None of the mentioned
Answer:A
Name the method which returns integer as -1 when the end of file is encountered.
A. int read() B. int ReadByte() C. void readbyte() D. None of the mentioned