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

  • (A) cin
  • (B) getline()
  • (C) read()
  • (D) extract()
πŸ’¬ Discuss
βœ… Correct Answer: (B) getline()
Explanation: The 'getline()' function is used to read an entire line of input in C++.
Explanation by: Shiva Ram
The 'getline()' function is used to read an entire line of input in C++.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
165
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Shiva Ram
Publisher
πŸ“ˆ
83%
Success Rate