Which standard header must be included to use std::cout and std::cin in C++?
Correct answer C. <iostream>
Explanation
std::cout and std::cin are declared in , which sets up the standard narrow and wide character streams. (or ) provides the C-style printf and scanf functions instead, provides file streams, and only adds manipulators such as std::setw. Including is therefore the minimum for console stream I/O.
Answer checked How we write and check questions
Discussion