πŸ“Š C++
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)
πŸ’¬ Discuss
βœ… Correct Answer: (D) cin.get(c)

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

Explanation by: Team MCQ Buddy
In C , the cin.get() function reads a single character from the console.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
196
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
91%
Success Rate