InterviewSolution
Saved Bookmarks
| 1. |
Select the method which returns the number of bytes from the array buffer:(a) void WriteByte(byte value)(b) int Write(byte[] buffer, int offset, int count)(c) write()(d) none of the mentionedI had been asked this question in class test.The origin of the question is Introduction of Stream Classes topic in division Console I/O Operations and Stream Classes of C# |
|
Answer» CORRECT option is (b) int Write(byte[] buffer, int offset, int count) Best explanation: Writes a subrange of count bytes from the ARRAY buffer, beginning at buffer[offset], RETURNING the NUMBER of bytes written. |
|