LearnFrenzy
Sign in Take a free test

Input/Output with cin and cout · Input/Output MCQ · Question 1

What are cin and cout in C++? Answer, explanation & discussion

  • MCQ
  • Easy
  • 0 comments
  • Answer explained
  • Moderated community
Question 1 Back to Exercise

What are std::cin and std::cout?

  • A Keywords of the C++ language
  • B Objects of type std::istream and std::ostream declared in <iostream> Correct
  • C Functions like printf and scanf
  • D Macros defined by the compiler
Correct Answer: Option B

They are global stream objects created before main starts. Being ordinary objects, they can be passed to functions as std::istream& and std::ostream&.

Discussion & Comments 0

Share your method, a shortcut, or ask about a step you didn't follow.

No comments yet. Be the first to share your solution!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links