Practice mode C++

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.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.