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?
- A.
It returns a file handle instead of a Boolean result.
- B.
It is suitable for reading input from non-console devices.
- C.
It can read binary data from disk files.
- D.
It requires the input buffer to be of type LPTSTR (character array).
Attempted by 261 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.