endl in c++

/*use of endl in c++ program */

#include<iostream.h>
#include<conio.h>

void main()
{
    cout<<"This is C++ Program."<<endl;
    /*This will print the "This is c++ Program." and move cursor in next line.*/

    cout<<"Second Line.";

}

Post a Comment

0 Comments