Which function is used to read a single character from the console in C++?

a) cin.get(ch)
b) getline(ch)
c) read(ch)
d) scanf(ch)

1 thought on “Which function is used to read a single character from the console in C++?”

  1. a
    Explanation: C++ provides cin.get() function to read a single character from console whereas others are used to read either a single or multiple characters.

Leave a Comment