Tag: Use of endl in C++

Use of endl in C++ Language

Use of endl in C++ Language: (1) “<< endl” is an alternate of “\n” for inserting a new line or print output in the next line.  (2) Sample C++ language code and its output, as shown: #include <iostream>using namespace std;int main() {cout<< “My first C++ Language Line!” <<endl;cout<< “My second C++ Language Line!”;return 0;} (3) After …