The cout is a predefined object of ______ class.

2022

The cout is a predefined object of ______ class.

  1. A.

    istream

  2. B.

    ostream

  3. C.

    outstream

  4. D.

    foutstream

Attempted by 189 students.

Show answer & explanation

Correct answer: B

In standard C++, the cout object is used for output to the console. It belongs to the ostream class defined in the iostream header file.

Explore the full course: Uppsc Polytechnic Lecturer 2025 Cs