//PROGRAM TO understand escape sequence
#include <iostream>//header file
using namespace std;//to handle all standard characters/functions,reserved words used in program. we do not use in turboc++ compiler.
int main() //main function
{
cout << "first line"<<"\n";//escape sequence for new line
cout<<"second line"<<"\n";//escape sequence for new line. we can also use single quote. It works.
return 0;
}
#include <iostream>//header file
using namespace std;//to handle all standard characters/functions,reserved words used in program. we do not use in turboc++ compiler.
int main() //main function
{
cout << "first line"<<"\n";//escape sequence for new line
cout<<"second line"<<"\n";//escape sequence for new line. we can also use single quote. It works.
return 0;
}