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!