+ 1

What about this?

what if I used👇 cout<<"my first program \n"; or court<<"my first program "<<" \n"; what will be the output of both.☝ both are same or not how?? please reply

10th Dec 2017, 4:36 PM
arun
2 Answers
+ 1
cout<<"my first program \n"; or cout<<"my first program "<< endl;
10th Dec 2017, 4:39 PM
Jonathan Álex
Jonathan Álex - avatar
+ 1
both will output "my first program" and add a line break in the end of the output. That means if you keep outputing things, it will continue starting from a different line
10th Dec 2017, 4:40 PM
Jonathan Álex
Jonathan Álex - avatar