+ 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
2 Answers
+ 1
cout<<"my first program \n";
or
cout<<"my first program "<< endl;
+ 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