Google News
logo
CPP - Quiz(MCQ)
Which function is used to write a single character to console in C++?
A)
cout.putline(ch)
B)
cout.put(ch)
C)
printf(ch)
D)
write(ch)

Correct Answer :   cout.put(ch)


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.

Advertisement