+ 2
What is the syntax for new line command in c++ ?
7 Respuestas
+ 5
Agent you are correct but it's used in c.....for c++ new command line will work like this
cout<<"hello"<<endl;
+ 6
but Ketan Lalcheta Google baba says endl is known as new command line argument ....and thanks I didn't knew about flush and \n combination
+ 5
i believe it is “\n”
+ 5
I would like to differ Yesh Jadav ... one can still use \n in c++.. endl is combination of two different commands (\n and flush)... so, one should choose \n until there is requirement to flush output each time....
+ 5
thanks alot Ketan Lalcheta
+ 2
cout<<endl;
or
cout<<\n;