Sail E0 Webinar
Question
Which method among the following returns the integer if no character is available?
Options:
A .  int peek()
B .  int read()
C .  string ReadLine()
D .  None of the mentioned
Answer: Option A


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



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers