1.

Which method of the character stream class returns the numbers of characters successfully read starting at index?(a) int Read()(b) int Read(char[] buffer, int index, int count)(c) int ReadBlock(char[ ] buffer, int index, int count)(d) none of the mentionedThis question was posed to me in semester exam.This is a very interesting question from Character Stream topic in chapter Console I/O Operations and Stream Classes of C#

Answer»

The CORRECT ANSWER is (C) int ReadBlock(char[ ] buffer, int INDEX, int count)

To explain: Attempts to read the count characters into buffer starting at buffer[index], returning the number of characters SUCCESSFULLY read.



Discussion

No Comment Found

Related InterviewSolutions