+ 1
Can anyone explain me difference between \n and \r?
3 Respuestas
+ 3
\n is a newline and \r is carriage return
+ 1
\n will move to the next line. eg. hitting the enter key.
\r carriage return means it will move to the beginning of the line you are currently on, and not create a new line. eg. hitting the home key.