+ 2

\n is new line what's \r?

27th Mar 2016, 9:46 PM
Michael Schwartz
Michael Schwartz - avatar
5 ответов
+ 4
I think \r is carriage returns. meaning the cursor is placed at the beginning of a line.
2nd Apr 2016, 11:58 AM
Bliksem Weer
Bliksem Weer - avatar
+ 2
\r is carriage return. Windows uses the combination of "\r\n" to denote a newline. all other OS's use just \n. It's annoying. this is why you have to convert line endings when copying files from Windows to Linux and vice versa.
29th Jun 2016, 12:33 AM
David
+ 1
It is also a new line symbol in window i.e.\r==\n.
1st Feb 2017, 8:55 AM
Ankit Kumar
Ankit Kumar - avatar
0
it means Carriage return.
16th Apr 2016, 1:45 PM
Joel Eze
Joel Eze - avatar
- 2
this would be a cool Jeopardy question!
23rd Jul 2016, 2:58 AM
D Stuart Merrell
D Stuart Merrell - avatar