Which method among the following returns the integer if no character is available?

a) int peek()
b) int read()
c) string ReadLine()
d) none of the mentioned

1 thought on “Which method among the following returns the integer if no character is available?”

  1. a
    Explanation: Obtains the next character from the input stream, but does not remove that character. Returns –1 if no character is available.

Leave a Comment