The console output statement in the C++ is used to display a message or an
output on the screen. In the program the statement used to display the message
"
was :
cout << "This is my first C++ program";
The << is the standard C++ output operator. This operator causes whatever
expression is on its right side to be output to the device specified on its left
side. "
specifies the console as the device
to display the output on.
Notice this statement ends with a semicolon. In fact all C++ statements end
with a semicolon. The message
is a string. In C++ a string is a sequence of characters enclosed between double
quotes.