The Big Master

Output using cout

C++, cout is an output stream object defined in the iostream header....

C++, cout is an output stream object defined in the iostream header. It is used to display output on the console or terminal. The cout object is part of the standard library and provides functionality for formatted output.

Here’s how cout is typically used:

 #include <iostream>
Using namespace std;
int main() {
    cout << "Hello, World!" << endl;
    return 0;
}