Input Output Operator (<<) (>>)

The shift operators (>> and <<) have been overloaded so you can perform I/O operations on istream and ostream objects, most notably cout, cin, and file streams. Thus you could just do console I/O operations. In C++ input operator(>>) and output operator(<<) for console IO operations are explained below. 1. Output Operator (Insertion Operator <<) To display single line or statement on console IO window “cout<<” function is used. cout<< uses to manage output streams on console IO window. cout<< is a library function defined in <iostream.h> header file of…

Read More