Cout | Console Out | Keyword for print

Cout 

           cout is a keyword which is used to print the data on the screen. This is a unique word which is only used to print something.

<<
<< sign which is used to show that the keyword / reserved word cout is used to print the data. So the outward sign is used.

Both are used as:

  cout<<

General syntax to print anything on the screen:
                            
                                                          
  cout<<" Text to print  ";


Example:

-->To write Hello world on the screen.

#include <iostream>
using namespace std;

void main ()
{

     

      cout<<"Hello World";
     

         }

Comments

Popular posts from this blog

Umbrella activities in Software Engineering

Operating System | Best Definition of Opetating System