A

Admin • 833K Points
Coach

Q. Which function is used to read a full line of text in C++?

  • (A) cin
  • (B) getline()
  • (C) read()
  • (D) extract()
  • Correct Answer - Option(B)
  • Views: 16
  • Filed under category C++
  • Hashtags:

Explanation by: Admin

The 'getline()' function is used to read an entire line of input in C++.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.