Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

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

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

Answer: 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.

Join The Discussion