Discussion Forum : Io Operations And Stream Classes
Question - Choose the output returned when read() reads the character from the console?
Options:
A .  String
B .  Char
C .  Integer
D .  Boolean
Answer: Option C


Read() returns the character read from the console. It returns the result. The character is returned as an int, which should be cast to char.



Was this answer helpful ?
Next Question
Submit Your Solution hear:

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