0

What is the <<cout>>

16th Jun 2017, 1:01 PM
Abil
2 Réponses
+ 3
hi, The predefined object cout is an instance of ostream class. The cout object is said to be "connected to" the standard output device, which usually is the display screen. The cout is used in conjunction with the stream insertion operator, which is written as << which are two less than signs as shown in the below example. #include <iostream> using namespace std; int main( ) { char str[] = "Hello C++"; cout << "Value of str is : " << str << endl; }
16th Jun 2017, 1:08 PM
Nanda Balakrishnan