1.

Choose the output returned when read() reads the character from the console?(a) String(b) Char(c) Integer(d) Boolean

Answer» The correct option is (c) Integer

The best explanation: 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.


Discussion

No Comment Found

Related InterviewSolutions