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 write a single character to console in C++?

a) printf(ch)
b) write(ch)
c) cout.put(ch)
d) cout.putline(ch)

Answer: c
Explanation: C++ provides cout.put() function to write a single character to console whereas others are used to write either a single or multiple characters.

Join The Discussion