Question: what is the difference between carriage return and new line?
Answer: 4 Answers. \n is the newline character, while \r is the carriage return. They differ in what uses them. Windows uses \r\n to signify the enter key was pressed, while Linux and Unix use \n to signify that the enter key was pressed.