Which of the following statements is true about the use of ReadConsole() method?

2025

Which of the following statements is true about the use of ReadConsole() method?

Answer: D. It requires the input buffer to be of type LPTSTR (character array).ReadConsole() reads character input from the console into a character buffer. The input buffer parameter is typically an LPTSTR/character array.

  1. A.

    It returns a file handle instead of a Boolean result.

  2. B.

    It is suitable for reading input from non-console devices.

  3. C.

    It can read binary data from disk files.

  4. D.

    It requires the input buffer to be of type LPTSTR (character array).

Attempted by 579 students.

Show answer & explanation

Correct answer: D

ReadConsole() reads character input from the console into a character buffer. The input buffer parameter is typically an LPTSTR/character array.

Explore the full course: Rssb Basic Computer Instructor

Loading lesson…