A

Admin • 833K Points
Coach

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

  • (A) scanf(c)
  • (B) read(c)
  • (C) getline(c)
  • (D) cin.get(c)
  • Correct Answer - Option(D)
  • Views: 24
  • Filed under category C++
  • Hashtags:

Explanation by: Admin

In C , the cin.get() function reads a single character from the console.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.