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

  • (A) printf(c)
  • (B) write(c)
  • (C) cout.put(c)
  • (D) cout.putline(c)
πŸ’¬ Discuss
βœ… Correct Answer: (C) cout.put(c)
Explanation: In C , the cout.put() function writes a single character to the console.
Explanation by: Team MCQ Buddy
In C , the cout.put() function writes a single character to the console.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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