![]() Mac only understands ‘\r’ as new line, while Unix and Linux understand ‘\n’ as new line character. Different operating systems have a different way of understanding new line. Now that we have understood that we have two different options to get new line, the question that arises is – why is it so? Line Feed – LF – \n – 0x0a – 10 (decimal)Ĭarriage Return – CR – \r – 0x0D – 13 (decimal) Prior to continuing with this article let us first look into few synonyms for LF and CR. ![]() Let’s take a common question that is frequently discussed – What is difference between Line Feed (\n) and Carriage Return (\r)? Today, we will examine something very simple and very generic that can apply to hordes of programming languages.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |